]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/LoginManagerTest.php
Refactor user credential validation at login time
[github/shaarli/Shaarli.git] / tests / LoginManagerTest.php
index 4159038ef0c77499a7e0cd48a0c4d5d74ec28020..27ca0db5730b812baf0b20f96232c5c95501c638 100644 (file)
@@ -38,7 +38,7 @@ class LoginManagerTest extends TestCase
         $this->globals = &$GLOBALS;
         unset($this->globals['IPBANS']);
 
-        $this->loginManager = new LoginManager($this->globals, $this->configManager);
+        $this->loginManager = new LoginManager($this->globals, $this->configManager, null);
         $this->server['REMOTE_ADDR'] = $this->ipAddr;
     }
 
@@ -59,7 +59,7 @@ class LoginManagerTest extends TestCase
             $this->banFile,
             "<?php\n\$GLOBALS['IPBANS']=array('FAILURES' => array('127.0.0.1' => 99));\n?>"
         );
-        new LoginManager($this->globals, $this->configManager);
+        new LoginManager($this->globals, $this->configManager, null);
         $this->assertEquals(99, $this->globals['IPBANS']['FAILURES']['127.0.0.1']);
     }