Skip to content

Commit 2138d4a

Browse files
committed
fix test expectations
1 parent 991693a commit 2138d4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PostgresEngineTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function test_update_adds_object_to_index()
2626
$db->shouldReceive('query')
2727
->andReturn($query = Mockery::mock('stdClass'));
2828
$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', ''])
3030
->andReturnSelf();
3131
$query->shouldReceive('value')
3232
->with('tsvector')
@@ -157,10 +157,10 @@ protected function setDbExpectations($db, $skip = 0, $limit = 5)
157157
$db->shouldReceive('table')
158158
->andReturn($table = Mockery::mock('stdClass'));
159159
$db->shouldReceive('raw')
160-
->with('plainto_tsquery(?) query')
161-
->andReturn('plainto_tsquery(?) query');
160+
->with('plainto_tsquery( ?) query')
161+
->andReturn('plainto_tsquery( ?) query');
162162

163-
$table->shouldReceive('crossJoin')->with('plainto_tsquery(?) query')->andReturnSelf()
163+
$table->shouldReceive('crossJoin')->with('plainto_tsquery( ?) query')->andReturnSelf()
164164
->shouldReceive('select')->with('id')->andReturnSelf()
165165
->shouldReceive('selectRaw')->with('ts_rank(searchable,query) AS rank')->andReturnSelf()
166166
->shouldReceive('selectRaw')->with('COUNT(*) OVER () AS total_count')->andReturnSelf()

0 commit comments

Comments
 (0)