@@ -57,6 +57,7 @@ public function testHavingIn()
5757 $ result = $ this ->db ->table ('job ' )
5858 ->select ('name ' )
5959 ->groupBy ('name ' )
60+ ->orderBy ('name ' , 'asc ' )
6061 ->havingIn ('name ' , ['Developer ' , 'Politician ' ])
6162 ->get ()
6263 ->getResult ();
@@ -73,6 +74,7 @@ public function testorHavingIn()
7374 $ result = $ this ->db ->table ('job ' )
7475 ->select ('name ' )
7576 ->groupBy ('name ' )
77+ ->orderBy ('name ' , 'asc ' )
7678 ->havingIn ('name ' , ['Developer ' ])
7779 ->orHavingIn ('name ' , ['Politician ' ])
7880 ->get ()
@@ -90,6 +92,7 @@ public function testHavingNotIn()
9092 $ result = $ this ->db ->table ('job ' )
9193 ->select ('name ' )
9294 ->groupBy ('name ' )
95+ ->orderBy ('name ' , 'asc ' )
9396 ->havingNotIn ('name ' , ['Developer ' , 'Politician ' ])
9497 ->get ()
9598 ->getResult ();
@@ -106,6 +109,7 @@ public function testOrHavingNotIn()
106109 $ result = $ this ->db ->table ('job ' )
107110 ->select ('name ' )
108111 ->groupBy ('name ' )
112+ ->orderBy ('name ' , 'asc ' )
109113 ->having ('SUM(id) > 2 ' )
110114 ->orHavingNotIn ('name ' , ['Developer ' , 'Politician ' ])
111115 ->get ()
@@ -138,6 +142,7 @@ public function testNotHavingLike()
138142 $ result = $ this ->db ->table ('job ' )
139143 ->select ('name ' )
140144 ->groupBy ('name ' )
145+ ->orderBy ('name ' , 'asc ' )
141146 ->notHavingLike ('name ' , 'ian ' )
142147 ->get ()
143148 ->getResult ();
@@ -154,6 +159,7 @@ public function testOrHavingLike()
154159 $ result = $ this ->db ->table ('job ' )
155160 ->select ('name ' )
156161 ->groupBy ('name ' )
162+ ->orderBy ('name ' , 'asc ' )
157163 ->havingLike ('name ' , 'elo ' )
158164 ->orHavingLike ('name ' , 'cc ' )
159165 ->get ()
@@ -171,6 +177,7 @@ public function testOrNotHavingLike()
171177 $ result = $ this ->db ->table ('job ' )
172178 ->select ('name ' )
173179 ->groupBy ('name ' )
180+ ->orderBy ('name ' , 'asc ' )
174181 ->having ('SUM(id) > 2 ' )
175182 ->orNotHavingLike ('name ' , 'ian ' )
176183 ->get ()
@@ -189,6 +196,7 @@ public function testAndHavingGroupStart()
189196 $ result = $ this ->db ->table ('job ' )
190197 ->select ('name ' )
191198 ->groupBy ('name ' )
199+ ->orderBy ('name ' , 'asc ' )
192200 ->having ('SUM(id) > 2 ' )
193201 ->havingGroupStart ()
194202 ->having ('SUM(id) <= 4 ' )
@@ -208,6 +216,7 @@ public function testOrHavingGroupStart()
208216 $ result = $ this ->db ->table ('job ' )
209217 ->select ('name ' )
210218 ->groupBy ('name ' )
219+ ->orderBy ('name ' , 'asc ' )
211220 ->having ('SUM(id) > 2 ' )
212221 ->orHavingGroupStart ()
213222 ->having ('SUM(id) <= 4 ' )
@@ -228,6 +237,7 @@ public function testNotHavingGroupStart()
228237 $ result = $ this ->db ->table ('job ' )
229238 ->select ('name ' )
230239 ->groupBy ('name ' )
240+ ->orderBy ('name ' , 'asc ' )
231241 ->having ('SUM(id) > 2 ' )
232242 ->notHavingGroupStart ()
233243 ->having ('SUM(id) <= 4 ' )
@@ -247,6 +257,7 @@ public function testOrNotHavingGroupStart()
247257 $ result = $ this ->db ->table ('job ' )
248258 ->select ('name ' )
249259 ->groupBy ('name ' )
260+ ->orderBy ('name ' , 'asc ' )
250261 ->having ('SUM(id) > 2 ' )
251262 ->orNotHavingGroupStart ()
252263 ->having ('SUM(id) < 2 ' )
0 commit comments