From dc2d6ea63e4bf1f1f9685e0d71207d574d8080c3 Mon Sep 17 00:00:00 2001 From: REJack Date: Sun, 25 Aug 2019 11:57:53 +0200 Subject: [PATCH] updated tests to use deleted_at instead of deleted --- tests/Aauth/Libraries/Aauth/PermTest.php | 2 +- tests/Aauth/Libraries/Aauth/UserTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Aauth/Libraries/Aauth/PermTest.php b/tests/Aauth/Libraries/Aauth/PermTest.php index 9227a9d..caa7f94 100644 --- a/tests/Aauth/Libraries/Aauth/PermTest.php +++ b/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); diff --git a/tests/Aauth/Libraries/Aauth/UserTest.php b/tests/Aauth/Libraries/Aauth/UserTest.php index 66fc219..c191728 100644 --- a/tests/Aauth/Libraries/Aauth/UserTest.php +++ b/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]);