@@ -37,7 +37,7 @@ public function test_update_adds_object_to_index()
37
37
$ table ->shouldReceive ('where ' )
38
38
->with ('id ' , '= ' , 1 )
39
39
->andReturnSelf ();
40
-
40
+
41
41
$ table ->shouldReceive ('update ' )
42
42
->with (['searchable ' => 'foo ' ]);
43
43
@@ -98,18 +98,18 @@ public function test_search()
98
98
99
99
$ engine ->search ($ builder );
100
100
}
101
-
101
+
102
102
public function test_search_with_soft_delete ()
103
103
{
104
104
list ($ engine , $ db ) = $ this ->getEngine ();
105
-
105
+
106
106
$ table = $ this ->setDbExpectations ($ db );
107
-
107
+
108
108
$ table ->shouldReceive ('skip ' )->with (0 )->andReturnSelf ()
109
109
->shouldReceive ('limit ' )->with (5 )->andReturnSelf ()
110
110
->shouldReceive ('where ' )->with ('bar ' , 1 )->andReturnSelf ()
111
111
->shouldReceive ('where ' )->with ('deleted_at ' , null );
112
-
112
+
113
113
$ db ->shouldReceive ('select ' )->with (null , ['foo ' , 1 ]);
114
114
115
115
$ builder = new Builder (new TestWithSoftDeleteModel (), 'foo ' );
@@ -188,7 +188,7 @@ protected function setDbExpectations($db, $skip = 0, $limit = 5)
188
188
->shouldReceive ('orderBy ' )->with ('rank ' , 'desc ' )->andReturnSelf ()
189
189
->shouldReceive ('orderBy ' )->with ('id ' )->andReturnSelf ()
190
190
->shouldReceive ('toSql ' );
191
-
191
+
192
192
return $ table ;
193
193
}
194
194
}
@@ -249,8 +249,8 @@ public function searchableAdditionalArray()
249
249
}
250
250
251
251
class TestWithSoftDeleteModel extends Model
252
- {
253
- use \Illuminate \Database \Eloquent \SoftDeletes;
252
+ {
253
+ use \Illuminate \Database \Eloquent \SoftDeletes;
254
254
public $ id = 1 ;
255
255
256
256
public $ text = 'Foo ' ;
0 commit comments