Skip to content
Snippets Groups Projects
Commit 12029b4d authored by Laurent's avatar Laurent
Browse files

Fix auth tests

parent 00ae3670
Branches
Tags
3 merge requests!393Master,!392Hotline 6.51,!384Hotline#16112 intranet compte redacteur
......@@ -20,6 +20,8 @@
*/
class Admin_AuthController extends Zend_Controller_Action {
use Trait_Translator;
function init() {
$viewRenderer = $this->getHelper('ViewRenderer');
$viewRenderer->setLayoutScript('sansMenuGauche.phtml');
......
......@@ -125,7 +125,8 @@ class AdminAuthControllerWithRestrictedProfilTest extends AbstractControllerTest
Storm_Test_ObjectWrapper::mock()
->whenCalled('authenticateLoginPassword')->answers(true)
->whenCalled('hasIdentity')->answers(false)
->whenCalled('getIdentity')->answers(null));
->whenCalled('getIdentity')->answers(null)
->whenCalled('newAuthDb')->answers(Storm_Test_ObjectWrapper::mock()));
$this->postDispatch('/admin/auth/login/id_profil/2',
['username' => 'foo', 'password' => 'bar']);
......
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