2 changed files with 29 additions and 29 deletions
@ -93,8 +93,8 @@ class UserModelTest extends CIDatabaseTestCase
|
||||
$this->assertFalse($newUser); |
||||
} |
||||
|
||||
public function testUpdate() |
||||
{ |
||||
// public function testUpdate() |
||||
// { |
||||
// $this->assertFalse($this->model->update(2, ['email' => '[email protected]'])); |
||||
// print_r($this->model->errors()); |
||||
// $this->assertEquals(lang('Aauth.existsAlreadyEmail'), $this->model->errors()[0]); |
||||
@ -131,5 +131,5 @@ class UserModelTest extends CIDatabaseTestCase
|
||||
|
||||
// $this->assertFalse($this->library->updateUser(2)); |
||||
// $this->assertCount(0, $this->library->getErrorsArray()); |
||||
} |
||||
// } |
||||
} |
||||
|
@ -80,7 +80,7 @@ class UserTest extends CIDatabaseTestCase
|
||||
|
||||
$this->library = new Aauth(null, true); |
||||
$this->assertFalse($this->library->updateUser(2, '[email protected]', null, null)); |
||||
print_r(getErrorsArray()); |
||||
print_r($this->library->getErrorsArray()); |
||||
$this->assertEquals(lang('Aauth.existsAlreadyEmail'), $this->library->getErrorsArray()[0]); |
||||
|
||||
$this->library = new Aauth(null, true); |
||||
|
Loading…
Reference in new issue