2 changed files with 5 additions and 5 deletions
@ -83,7 +83,7 @@ class LoginTest extends CIDatabaseTestCase
|
||||
{ |
||||
$session = $this->getInstance(); |
||||
$this->library = new Aauth(null, $session); |
||||
$this->assertFalse($this->library->login('[email protected]', 'password')); |
||||
$this->assertFalse($this->library->login('[email protected]', 'passwor')); |
||||
$this->assertEquals(lang('Aauth.loginFailedEmail'), $this->library->getErrorsArray()[0]); |
||||
} |
||||
|
||||
@ -120,7 +120,7 @@ class LoginTest extends CIDatabaseTestCase
|
||||
$config = new AauthConfig(); |
||||
$config->loginUseUsername = true; |
||||
$this->library = new Aauth($config, $session); |
||||
$this->assertFalse($this->library->login('admina', 'password')); |
||||
$this->assertFalse($this->library->login('user99', 'password123456')); |
||||
$this->assertEquals(lang('Aauth.notFoundUser'), $this->library->getErrorsArray()[0]); |
||||
$config->loginUseUsername = false; |
||||
} |
||||
@ -165,6 +165,7 @@ class LoginTest extends CIDatabaseTestCase
|
||||
$this->library->login('[email protected]', 'password123456'); |
||||
$this->library->login('[email protected]', 'password123456'); |
||||
$this->library->login('[email protected]', 'password123456'); |
||||
$this->library->login('[email protected]', 'password123456'); |
||||
$this->assertFalse($this->library->login('[email protected]', 'password123456')); |
||||
$this->assertEquals(lang('Aauth.loginAttemptsExceeded'), $this->library->getErrorsArray()[0]); |
||||
} |
||||
|
Loading…
Reference in new issue