This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Magento EE 1.14 #265
Comments
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 |
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 ); |
@pkonikowski assuming the difference between |
@robbieaverill yes it's a typo. Unfortunately we work on 1.14.2 only. |
Presumably the same issue would be found with CE 1.9.2.x? |
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.
Are there any chances for Magento EE 1.14 compatibility? We noticed that mocking resource models doesn't work.
The text was updated successfully, but these errors were encountered: