We will be off on April 7th (Monday) for public holiday in our country

Commit b2fddcc2 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Fix issue with admin auth in 1.8

parent c607498d
......@@ -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 = Mage::getModel('admin/user');
$user = EcomDev_PHPUnit_Helper::invoke('mockModel', 'admin/user', array('reload'));
$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