summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/database/query_builder/group_test.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/codeigniter/database/query_builder/group_test.php b/tests/codeigniter/database/query_builder/group_test.php
index 785754ec1..51266e858 100644
--- a/tests/codeigniter/database/query_builder/group_test.php
+++ b/tests/codeigniter/database/query_builder/group_test.php
@@ -56,11 +56,11 @@ class Group_test extends CI_TestCase {
public function test_having_in()
{
$jobs = $this->db->select('name')
- ->from('job')
- ->group_by('name')
- ->having_in('SUM(id)', array(1, 2, 5))
- ->get()
- ->result_array();
+ ->from('job')
+ ->group_by('name')
+ ->having_in('SUM(id)', array(1, 2, 5))
+ ->get()
+ ->result_array();
$this->assertEquals(2, count($jobs));
}
@@ -73,12 +73,12 @@ class Group_test extends CI_TestCase {
public function test_or_having_in()
{
$jobs = $this->db->select('name')
- ->from('job')
- ->group_by('name')
- ->or_having_in('SUM(id)', array(1, 5))
- ->or_having_in('SUM(id)', array(2, 6))
- ->get()
- ->result_array();
+ ->from('job')
+ ->group_by('name')
+ ->or_having_in('SUM(id)', array(1, 5))
+ ->or_having_in('SUM(id)', array(2, 6))
+ ->get()
+ ->result_array();
$this->assertEquals(2, count($jobs));
}
@@ -91,11 +91,11 @@ class Group_test extends CI_TestCase {
public function test_having_not_in()
{
$jobs = $this->db->select('name')
- ->from('job')
- ->group_by('name')
- ->having_not_in('SUM(id)', array(3, 6))
- ->get()
- ->result_array();
+ ->from('job')
+ ->group_by('name')
+ ->having_not_in('SUM(id)', array(3, 6))
+ ->get()
+ ->result_array();
$this->assertEquals(3, count($jobs));
}
@@ -108,12 +108,12 @@ class Group_test extends CI_TestCase {
public function test_or_having_not_in()
{
$jobs = $this->db->select('name')
- ->from('job')
- ->group_by('name')
- ->or_having_not_in('SUM(id)', array(1, 2, 3))
- ->or_having_not_in('SUM(id)', array(1, 3, 4))
- ->get()
- ->result_array();
+ ->from('job')
+ ->group_by('name')
+ ->or_having_not_in('SUM(id)', array(1, 2, 3))
+ ->or_having_not_in('SUM(id)', array(1, 3, 4))
+ ->get()
+ ->result_array();
$this->assertEquals(2, count($jobs));
}