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)); } - //--------------------------------------------------------------------