summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2017-06-15 05:47:28 +0200
committertianhe1986 <w1s2j3229@163.com>2017-06-15 05:47:28 +0200
commitef0bfea072a6b20e14cb6777c27b8b3a3d94ab5d (patch)
tree50cb94702724dbca36646ee45ea1b7cdb7970e71 /tests/codeigniter
parent9f6da3c2f11535fee09dd306ae6b884168e4623b (diff)
Adding unit test.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/database/query_builder/count_test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/codeigniter/database/query_builder/count_test.php b/tests/codeigniter/database/query_builder/count_test.php
index 90ac5283e..cce3fb61d 100644
--- a/tests/codeigniter/database/query_builder/count_test.php
+++ b/tests/codeigniter/database/query_builder/count_test.php
@@ -35,4 +35,14 @@ class Count_test extends CI_TestCase {
$this->assertEquals(2, $this->db->like('name', 'ian')->count_all_results('job'));
}
+ // ------------------------------------------------------------------------
+
+ /**
+ * @see ./mocks/schema/skeleton.php
+ */
+ public function test_count_all_results_limit()
+ {
+ $this->assertEquals(2, $this->db->like('name', 'ian')->limit(10, 10)->count_all_results('job'));
+ }
+
} \ No newline at end of file