Browse Source

updated tests to use deleted_at instead of deleted

v3-dev
REJack 6 years ago
parent
commit
dc2d6ea63e
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
  1. 2
      tests/Aauth/Libraries/Aauth/PermTest.php
  2. 4
      tests/Aauth/Libraries/Aauth/UserTest.php

2
tests/Aauth/Libraries/Aauth/PermTest.php

@ -126,7 +126,7 @@ class PermTest extends CIDatabaseTestCase
$this->dontSeeInDatabase($this->config->dbTablePerms, [
'name' => 'testPerm1',
'definition' => 'Test Perm 1',
'deleted' => 0,
'deleted_at' => null,
]);
$this->library = new Aauth(null, null);

4
tests/Aauth/Libraries/Aauth/UserTest.php

@ -149,9 +149,9 @@ class UserTest extends CIDatabaseTestCase
public function testDeleteUser()
{
$this->seeNumRecords(2, $this->config->dbTableUsers, ['deleted' => 0]);
$this->seeNumRecords(2, $this->config->dbTableUsers, ['deleted_at' => null]);
$this->library->deleteUser(2);
$this->seeNumRecords(1, $this->config->dbTableUsers, ['deleted' => 0]);
$this->seeNumRecords(1, $this->config->dbTableUsers, ['deleted_at' => null]);
$this->assertFalse($this->library->deleteUser(99));
$this->assertEquals(lang('Aauth.notFoundUser'), $this->library->getErrorsArray()[0]);

Loading…
Cancel
Save