Skip to content

Commit bfa5970

Browse files
committed
Update Session.php
1 parent b2fddcc commit bfa5970

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/code/community/EcomDev/PHPUnit/Test/Case/Helper

app/code/community/EcomDev/PHPUnit/Test/Case/Helper/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function createUser($entropy = 3)
140140
// Fix for EE gws functionality
141141
$userRole = Mage::getModel('admin/roles');
142142
$userRole->setGwsIsAll(1);
143-
$user = EcomDev_PHPUnit_Helper::invoke('mockModel', 'admin/user', array('reload'));
143+
$user = EcomDev_PHPUnit_Helper::invoke('mockModel', 'admin/user', array('reload'))->getMockInstance();
144144
$user->setId($userId);
145145
EcomDev_Utils_Reflection::setRestrictedPropertyValue($user, '_role', $userRole);
146146
return $user;

0 commit comments

Comments
 (0)