@@ -241,10 +241,15 @@ public function it_returns_info_about_a_specific_task()
241
241
242
242
/**
243
243
* @test
244
+ *
245
+ * @testWith [{"task_type": "http"}]
246
+ * [{"task_type": "appengine"}]
244
247
*/
245
- public function when_a_job_is_dispatched_it_will_be_added_to_the_dashboard ()
248
+ public function when_a_job_is_dispatched_it_will_be_added_to_the_dashboard (array $ test )
246
249
{
247
250
// Arrange
251
+ $ this ->withTaskType ($ test ['task_type ' ]);
252
+
248
253
CloudTasksApi::fake ();
249
254
$ tasksBefore = StackkitCloudTask::count ();
250
255
$ job = $ this ->dispatch (new SimpleJob ());
@@ -280,10 +285,15 @@ public function when_dashboard_is_disabled_jobs_will_not_be_added_to_the_dashboa
280
285
281
286
/**
282
287
* @test
288
+ *
289
+ * @testWith [{"task_type": "http"}]
290
+ * [{"task_type": "appengine"}]
283
291
*/
284
- public function when_a_job_is_scheduled_it_will_be_added_as_such ()
292
+ public function when_a_job_is_scheduled_it_will_be_added_as_such (array $ test )
285
293
{
286
294
// Arrange
295
+ $ this ->withTaskType ($ test ['task_type ' ]);
296
+
287
297
CloudTasksApi::fake ();
288
298
Carbon::setTestNow (now ());
289
299
$ tasksBefore = StackkitCloudTask::count ();
@@ -305,10 +315,15 @@ public function when_a_job_is_scheduled_it_will_be_added_as_such()
305
315
306
316
/**
307
317
* @test
318
+ *
319
+ * @testWith [{"task_type": "http"}]
320
+ * [{"task_type": "appengine"}]
308
321
*/
309
- public function when_a_job_is_running_it_will_be_updated_in_the_dashboard ()
322
+ public function when_a_job_is_running_it_will_be_updated_in_the_dashboard (array $ test )
310
323
{
311
324
// Arrange
325
+ $ this ->withTaskType ($ test ['task_type ' ]);
326
+
312
327
\Illuminate \Support \Carbon::setTestNow (now ());
313
328
CloudTasksApi::fake ();
314
329
OpenIdVerificator::fake ();
@@ -331,10 +346,15 @@ public function when_a_job_is_running_it_will_be_updated_in_the_dashboard()
331
346
332
347
/**
333
348
* @test
349
+ *
350
+ * @testWith [{"task_type": "http"}]
351
+ * [{"task_type": "appengine"}]
334
352
*/
335
- public function when_a_job_is_successful_it_will_be_updated_in_the_dashboard ()
353
+ public function when_a_job_is_successful_it_will_be_updated_in_the_dashboard (array $ test )
336
354
{
337
355
// Arrange
356
+ $ this ->withTaskType ($ test ['task_type ' ]);
357
+
338
358
\Illuminate \Support \Carbon::setTestNow (now ());
339
359
CloudTasksApi::fake ();
340
360
OpenIdVerificator::fake ();
@@ -357,10 +377,15 @@ public function when_a_job_is_successful_it_will_be_updated_in_the_dashboard()
357
377
358
378
/**
359
379
* @test
380
+ *
381
+ * @testWith [{"task_type": "http"}]
382
+ * [{"task_type": "appengine"}]
360
383
*/
361
- public function when_a_job_errors_it_will_be_updated_in_the_dashboard ()
384
+ public function when_a_job_errors_it_will_be_updated_in_the_dashboard (array $ test )
362
385
{
363
386
// Arrange
387
+ $ this ->withTaskType ($ test ['task_type ' ]);
388
+
364
389
\Illuminate \Support \Carbon::setTestNow (now ());
365
390
CloudTasksApi::fake ();
366
391
OpenIdVerificator::fake ();
@@ -384,10 +409,15 @@ public function when_a_job_errors_it_will_be_updated_in_the_dashboard()
384
409
385
410
/**
386
411
* @test
412
+ *
413
+ * @testWith [{"task_type": "http"}]
414
+ * [{"task_type": "appengine"}]
387
415
*/
388
- public function when_a_job_fails_it_will_be_updated_in_the_dashboard ()
416
+ public function when_a_job_fails_it_will_be_updated_in_the_dashboard (array $ test )
389
417
{
390
418
// Arrange
419
+ $ this ->withTaskType ($ test ['task_type ' ]);
420
+
391
421
\Illuminate \Support \Carbon::setTestNow (now ());
392
422
CloudTasksApi::fake ();
393
423
OpenIdVerificator::fake ();
@@ -416,10 +446,15 @@ public function when_a_job_fails_it_will_be_updated_in_the_dashboard()
416
446
417
447
/**
418
448
* @test
449
+ *
450
+ * @testWith [{"task_type": "http"}]
451
+ * [{"task_type": "appengine"}]
419
452
*/
420
- public function when_a_job_is_released_it_will_be_updated_in_the_dashboard ()
453
+ public function when_a_job_is_released_it_will_be_updated_in_the_dashboard (array $ test )
421
454
{
422
455
// Arrange
456
+ $ this ->withTaskType ($ test ['task_type ' ]);
457
+
423
458
\Illuminate \Support \Carbon::setTestNow (now ());
424
459
CloudTasksApi::fake ();
425
460
OpenIdVerificator::fake ();
@@ -447,10 +482,15 @@ public function when_a_job_is_released_it_will_be_updated_in_the_dashboard()
447
482
448
483
/**
449
484
* @test
485
+ *
486
+ * @testWith [{"task_type": "http"}]
487
+ * [{"task_type": "appengine"}]
450
488
*/
451
- public function job_release_delay_is_added_to_the_metadata ()
489
+ public function job_release_delay_is_added_to_the_metadata (array $ test )
452
490
{
453
491
// Arrange
492
+ $ this ->withTaskType ($ test ['task_type ' ]);
493
+
454
494
\Illuminate \Support \Carbon::setTestNow (now ());
455
495
CloudTasksApi::fake ();
456
496
OpenIdVerificator::fake ();
0 commit comments