Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Magento EE 1.14 #265

Open
bartkibilko opened this issue Jan 8, 2016 · 6 comments
Open

Magento EE 1.14 #265

bartkibilko opened this issue Jan 8, 2016 · 6 comments

Comments

@bartkibilko
Copy link

Are there any chances for Magento EE 1.14 compatibility? We noticed that mocking resource models doesn't work.

@robbieaverill
Copy link

What do you mean by doesn't work? I don't have any trouble on 1.14.2.1, although I can't recall having mocked resource models

@pkonikowski
Copy link

For example:

//This code doesn't work.
$resourceMock = $this->getResourceModelMock('abc_test', array('functionName'));
        $brandMock->expects($this->any())
            ->method('functionName')
            ->will($this->returnCallback(
                function() {
                    return array(1);
                }
            ));
        $this->replaceByMock('resource_model', 'abc_test', $resourceMock );

@robbieaverill
Copy link

@pkonikowski assuming the difference between $resourceMock and $brandMock is a typo in that example, do you have a way of regression testing that against earlier EE versions to see where the compatibility broke?

@pkonikowski
Copy link

@robbieaverill yes it's a typo. Unfortunately we work on 1.14.2 only.

@robbieaverill
Copy link

Presumably the same issue would be found with CE 1.9.2.x?

@robbieaverill
Copy link

Side note- is the model usable without the model name which usually follows a slash?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants