File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ public function test_chained_queue_timeout_configuration(): void
225
225
});
226
226
}
227
227
228
- public function test_chained_queue_timeout_configuration_with_empty_string (): void
228
+ public function test_chained_queue_timeout_configuration_with_null_value (): void
229
229
{
230
230
Bus::fake ([
231
231
Import::class,
@@ -246,4 +246,26 @@ public function test_chained_queue_timeout_configuration_with_empty_string(): vo
246
246
return $ job ->timeout === null ;
247
247
});
248
248
}
249
+
250
+ public function test_chained_queue_timeout_configuration_with_empty_string (): void
251
+ {
252
+ Bus::fake ([
253
+ Import::class,
254
+ ]);
255
+
256
+ $ this ->app ['config ' ]->set ('scout.queue ' , ['connection ' => 'sync ' , 'queue ' => 'scout ' ]);
257
+ $ this ->app ['config ' ]->set ('elasticsearch.queue.timeout ' , '' );
258
+
259
+ $ output = new BufferedOutput ();
260
+ Artisan::call ('scout:import ' , [], $ output );
261
+
262
+ $ output = array_map ('trim ' , explode ("\n" , $ output ->fetch ()));
263
+
264
+ $ this ->assertContains (trans ('scout::import.start ' , ['searchable ' => Product::class]), $ output );
265
+ $ this ->assertContains ('[OK] ' .trans ('scout::import.done.queue ' , ['searchable ' => Product::class]), $ output );
266
+
267
+ Bus::assertDispatched (function (Import $ job ) {
268
+ return $ job ->timeout === null ;
269
+ });
270
+ }
249
271
}
You can’t perform that action at this time.
0 commit comments