1 changed files with 3 additions and 0 deletions
@ -69,11 +69,13 @@ class UserTest extends CIDatabaseTestCase
|
||||
$this->library = new Aauth(NULL, $session); |
||||
|
||||
$this->seeInDatabase($this->config->dbTableUsers, [ |
||||
'id' => 2, |
||||
'email' => '[email protected]', |
||||
'username' => 'user', |
||||
]); |
||||
$this->library->updateUser(2, '[email protected]', 'password987654', 'user1'); |
||||
$this->seeInDatabase($this->config->dbTableUsers, [ |
||||
'id' => 2, |
||||
'email' => '[email protected]', |
||||
'username' => 'user1', |
||||
]); |
||||
@ -81,6 +83,7 @@ class UserTest extends CIDatabaseTestCase
|
||||
|
||||
$this->library->clearInfos(); |
||||
$this->assertFalse($this->library->updateUser(2, '[email protected]', null, null)); |
||||
print_r($this->library->getUser(2)); |
||||
$this->assertEquals(lang('Aauth.existsAlreadyEmail'), $this->library->getErrorsArray()[0]); |
||||
|
||||
$this->library->clearErrors(); |
||||
|
Loading…
Reference in new issue