@@ -15,14 +15,14 @@ class PostgresEngineTest extends TestCase
1515{
1616 public function test_it_can_be_instantiated ()
1717 {
18- list ( $ engine) = $ this ->getEngine ();
18+ [ $ engine] = $ this ->getEngine ();
1919
2020 $ this ->assertInstanceOf (PostgresEngine::class, $ engine );
2121 }
2222
2323 public function test_update_adds_object_to_index ()
2424 {
25- list ( $ engine , $ db) = $ this ->getEngine ();
25+ [ $ engine , $ db] = $ this ->getEngine ();
2626
2727 $ db ->shouldReceive ('query ' )
2828 ->andReturn ($ query = Mockery::mock ('stdClass ' ));
@@ -50,14 +50,14 @@ public function test_update_adds_object_to_index()
5050
5151 public function test_update_do_nothing_if_index_maintenance_turned_off_globally ()
5252 {
53- list ( $ engine) = $ this ->getEngine (['maintain_index ' => false ]);
53+ [ $ engine] = $ this ->getEngine (['maintain_index ' => false ]);
5454
5555 $ engine ->update (Collection::make ([new TestModel ()]));
5656 }
5757
5858 public function test_delete_removes_object_from_index ()
5959 {
60- list ( $ engine , $ db) = $ this ->getEngine ();
60+ [ $ engine , $ db] = $ this ->getEngine ();
6161
6262 $ db ->shouldReceive ('table ' )
6363 ->andReturn ($ table = Mockery::mock ('stdClass ' ));
@@ -72,7 +72,7 @@ public function test_delete_removes_object_from_index()
7272
7373 public function test_delete_do_nothing_if_index_maintenance_turned_off_globally ()
7474 {
75- list ( $ engine , $ db) = $ this ->getEngine (['maintain_index ' => false ]);
75+ [ $ engine , $ db] = $ this ->getEngine (['maintain_index ' => false ]);
7676
7777 $ db ->shouldNotReceive ('table ' );
7878
@@ -81,7 +81,7 @@ public function test_delete_do_nothing_if_index_maintenance_turned_off_globally(
8181
8282 public function test_flush_removes_all_objects_from_index ()
8383 {
84- list ( $ engine , $ db) = $ this ->getEngine ();
84+ [ $ engine , $ db] = $ this ->getEngine ();
8585
8686 $ db ->shouldReceive ('table ' )
8787 ->once ()
@@ -95,7 +95,7 @@ public function test_flush_removes_all_objects_from_index()
9595
9696 public function test_flush_does_nothing_if_index_maintenance_turned_off_globally ()
9797 {
98- list ( $ engine , $ db) = $ this ->getEngine (['maintain_index ' => false ]);
98+ [ $ engine , $ db] = $ this ->getEngine (['maintain_index ' => false ]);
9999
100100 $ db ->shouldNotReceive ('table ' );
101101
@@ -104,7 +104,7 @@ public function test_flush_does_nothing_if_index_maintenance_turned_off_globally
104104
105105 public function test_search ()
106106 {
107- list ( $ engine , $ db) = $ this ->getEngine ();
107+ [ $ engine , $ db] = $ this ->getEngine ();
108108
109109 $ skip = 0 ;
110110 $ limit = 5 ;
@@ -129,7 +129,7 @@ public function test_search()
129129
130130 public function test_search_with_order_by ()
131131 {
132- list ( $ engine , $ db) = $ this ->getEngine ();
132+ [ $ engine , $ db] = $ this ->getEngine ();
133133
134134 $ table = $ this ->setDbExpectations ($ db , false );
135135
@@ -149,7 +149,7 @@ public function test_search_with_order_by()
149149
150150 public function test_search_with_global_config ()
151151 {
152- list ( $ engine , $ db) = $ this ->getEngine (['config ' => 'simple ' ]);
152+ [ $ engine , $ db] = $ this ->getEngine (['config ' => 'simple ' ]);
153153
154154 $ skip = 0 ;
155155 $ limit = 5 ;
@@ -170,7 +170,7 @@ public function test_search_with_global_config()
170170
171171 public function test_search_with_model_config ()
172172 {
173- list ( $ engine , $ db) = $ this ->getEngine (['config ' => 'simple ' ]);
173+ [ $ engine , $ db] = $ this ->getEngine (['config ' => 'simple ' ]);
174174
175175 $ skip = 0 ;
176176 $ limit = 5 ;
@@ -194,7 +194,7 @@ public function test_search_with_model_config()
194194
195195 public function test_search_with_soft_deletes ()
196196 {
197- list ( $ engine , $ db) = $ this ->getEngine ();
197+ [ $ engine , $ db] = $ this ->getEngine ();
198198
199199 $ table = $ this ->setDbExpectations ($ db );
200200
@@ -214,7 +214,7 @@ public function test_search_with_soft_deletes()
214214
215215 public function test_maps_results_to_models ()
216216 {
217- list ( $ engine) = $ this ->getEngine ();
217+ [ $ engine] = $ this ->getEngine ();
218218
219219 $ model = Mockery::mock ('StdClass ' );
220220 $ model ->shouldReceive ('getKeyName ' )->andReturn ('id ' );
@@ -232,7 +232,7 @@ public function test_maps_results_to_models()
232232
233233 public function test_map_filters_out_no_longer_existing_models ()
234234 {
235- list ( $ engine) = $ this ->getEngine ();
235+ [ $ engine] = $ this ->getEngine ();
236236
237237 $ model = Mockery::mock ('StdClass ' );
238238 $ model ->shouldReceive ('getKeyName ' )->andReturn ('id ' );
@@ -255,7 +255,7 @@ public function test_map_filters_out_no_longer_existing_models()
255255
256256 public function test_it_returns_total_count ()
257257 {
258- list ( $ engine) = $ this ->getEngine ();
258+ [ $ engine] = $ this ->getEngine ();
259259
260260 $ count = $ engine ->getTotalCount (
261261 json_decode ('[{"id": 1, "tsrank": 0.33, "total_count": 100}] ' )
@@ -266,7 +266,7 @@ public function test_it_returns_total_count()
266266
267267 public function test_map_ids_returns_right_key ()
268268 {
269- list ( $ engine , $ db) = $ this ->getEngine ();
269+ [ $ engine , $ db] = $ this ->getEngine ();
270270
271271 $ table = $ this ->setDbExpectations ($ db );
272272 $ table ->shouldReceive ('getBindings ' )->andReturn ([null , 'foo ' ]);
0 commit comments