From cbe4b1dc30d7e94f12da92d81111797c2a30c9f6 Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Sun, 5 May 2019 21:33:30 -0500 Subject: [PATCH] Fix SQlite tests --- tests/system/Validation/RulesTest.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/system/Validation/RulesTest.php b/tests/system/Validation/RulesTest.php index af9aebac8484..9993dcb20b0b 100644 --- a/tests/system/Validation/RulesTest.php +++ b/tests/system/Validation/RulesTest.php @@ -3,9 +3,12 @@ namespace CodeIgniter\Validation; use Config\Database; +use CodeIgniter\Test\CIDatabaseTestCase; -class RulesTest extends \CIUnitTestCase +class RulesTest extends CIDatabaseTestCase { + protected $refresh = true; + /** * @var Validation */ @@ -379,7 +382,7 @@ public function testDiffersFalse() $this->assertFalse($this->validation->run($data)); } - + //-------------------------------------------------------------------- public function testEqualsNull() @@ -394,7 +397,7 @@ public function testEqualsNull() $this->assertFalse($this->validation->run($data)); } - + //-------------------------------------------------------------------- public function testEqualsEmptyIsEmpty() @@ -454,7 +457,7 @@ public function testEqualsReturnsFalseOnCaseMismatch() $this->assertFalse($this->validation->run($data)); } - + //-------------------------------------------------------------------- public function testNotEqualsNull() @@ -469,7 +472,7 @@ public function testNotEqualsNull() $this->assertTrue($this->validation->run($data)); } - + //-------------------------------------------------------------------- public function testNotEqualsEmptyIsEmpty() @@ -529,7 +532,6 @@ public function testNotEqualsReturnsTrueOnCaseMismatch() $this->assertTrue($this->validation->run($data)); } - //--------------------------------------------------------------------