Commit bfa5970e authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Update Session.php

parent b2fddcc2
......@@ -140,7 +140,7 @@ class EcomDev_PHPUnit_Test_Case_Helper_Session
// Fix for EE gws functionality
$userRole = Mage::getModel('admin/roles');
$userRole->setGwsIsAll(1);
$user = EcomDev_PHPUnit_Helper::invoke('mockModel', 'admin/user', array('reload'));
$user = EcomDev_PHPUnit_Helper::invoke('mockModel', 'admin/user', array('reload'))->getMockInstance();
$user->setId($userId);
EcomDev_Utils_Reflection::setRestrictedPropertyValue($user, '_role', $userRole);
return $user;
......
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