Commit deb7b7ad authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #104 from cmuench/patch-4

AdminGws Problems in EE 1.13
parents ac0de6df b1686f52
......@@ -2027,7 +2027,22 @@ abstract class EcomDev_PHPUnit_Test_Case_Controller extends EcomDev_PHPUnit_Test
array('login', 'getId', 'save', 'authenticate', 'getRole')
);
$adminRoleMock = $this->getModelMock('admin/roles', array('getGwsIsAll'));
$adminRoleMock = $this->getModelMock(
'admin/roles',
array('getGwsIsAll', 'getGwsStores', 'getGwsStoreGroups', 'getGwsRelevantWebsites')
);
$adminRoleMock->expects($this->any())
->method('getGwsStores')
->will($this->returnValue(array_keys(Mage::app()->getStores(true))));
$adminRoleMock->expects($this->any())
->method('getGwsStoreGroups')
->will($this->returnValue(array_keys(Mage::app()->getGroups(true))));
$adminRoleMock->expects($this->any())
->method('getGwsRelevantWebsites')
->will($this->returnValue(array_keys(Mage::app()->getWebsites(true))));
$adminRoleMock->expects($this->any())
->method('getGwsIsAll')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment