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