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

Magento EE 1.14 #265

Description

@bartkibilko

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

Activity

robbieaverill commented on Jan 13, 2016

@robbieaverill

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 commented on Jan 13, 2016

@pkonikowski

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 commented on Jan 13, 2016

@robbieaverill

@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 commented on Jan 14, 2016

@pkonikowski

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

robbieaverill commented on Jan 14, 2016

@robbieaverill

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

robbieaverill commented on Jan 14, 2016

@robbieaverill

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions