summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/database/query_builder/truncate_test.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2017-12-08 20:25:02 +0100
committerGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:43:45 +0100
commitdfa52f3ed31696c58fdc85273f4408559233b19e (patch)
tree63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/database/query_builder/truncate_test.php
parent3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff)
Refactoring tests
Diffstat (limited to 'tests/codeigniter/database/query_builder/truncate_test.php')
-rw-r--r--tests/codeigniter/database/query_builder/truncate_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/database/query_builder/truncate_test.php b/tests/codeigniter/database/query_builder/truncate_test.php
index 09923c7f1..64abe2872 100644
--- a/tests/codeigniter/database/query_builder/truncate_test.php
+++ b/tests/codeigniter/database/query_builder/truncate_test.php
@@ -24,7 +24,7 @@ class Truncate_test extends CI_TestCase {
{
// Check initial record
$jobs = $this->db->get('job')->result_array();
- $this->assertEquals(4, count($jobs));
+ $this->assertCount(4, $jobs);
// Do the empty
$this->db->truncate('job');
@@ -43,7 +43,7 @@ class Truncate_test extends CI_TestCase {
{
// Check initial record
$users = $this->db->get('user')->result_array();
- $this->assertEquals(4, count($users));
+ $this->assertCount(4, $users);
// Do the empty
$this->db->from('user')->truncate();
@@ -53,4 +53,4 @@ class Truncate_test extends CI_TestCase {
$this->assertEmpty($users->result_array());
}
-} \ No newline at end of file
+}