@@ -26,7 +26,7 @@ public function test_update_adds_object_to_index()
26
26
$ db ->shouldReceive ('query ' )
27
27
->andReturn ($ query = Mockery::mock ('stdClass ' ));
28
28
$ query ->shouldReceive ('selectRaw ' )
29
- ->with ("to_tsvector(?) || setweight(to_tsvector(?), 'B') AS tsvector " , ['Foo ' , '' ])
29
+ ->with ("to_tsvector( ?) || setweight(to_tsvector( ?), 'B') AS tsvector " , ['Foo ' , '' ])
30
30
->andReturnSelf ();
31
31
$ query ->shouldReceive ('value ' )
32
32
->with ('tsvector ' )
@@ -157,10 +157,10 @@ protected function setDbExpectations($db, $skip = 0, $limit = 5)
157
157
$ db ->shouldReceive ('table ' )
158
158
->andReturn ($ table = Mockery::mock ('stdClass ' ));
159
159
$ db ->shouldReceive ('raw ' )
160
- ->with ('plainto_tsquery(?) query ' )
161
- ->andReturn ('plainto_tsquery(?) query ' );
160
+ ->with ('plainto_tsquery( ?) query ' )
161
+ ->andReturn ('plainto_tsquery( ?) query ' );
162
162
163
- $ table ->shouldReceive ('crossJoin ' )->with ('plainto_tsquery(?) query ' )->andReturnSelf ()
163
+ $ table ->shouldReceive ('crossJoin ' )->with ('plainto_tsquery( ?) query ' )->andReturnSelf ()
164
164
->shouldReceive ('select ' )->with ('id ' )->andReturnSelf ()
165
165
->shouldReceive ('selectRaw ' )->with ('ts_rank(searchable,query) AS rank ' )->andReturnSelf ()
166
166
->shouldReceive ('selectRaw ' )->with ('COUNT(*) OVER () AS total_count ' )->andReturnSelf ()
0 commit comments