@@ -241,10 +241,15 @@ public function it_returns_info_about_a_specific_task()
241241
242242    /** 
243243     * @test 
244+      * 
245+      * @testWith [{"task_type": "http"}] 
246+      *           [{"task_type": "appengine"}] 
244247     */ 
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 
246249    {
247250        // Arrange 
251+         $ this withTaskType ($ test'task_type ' ]);
252+ 
248253        CloudTasksApi::fake ();
249254        $ tasksBeforecount ();
250255        $ job$ this dispatch (new  SimpleJob ());
@@ -280,10 +285,15 @@ public function when_dashboard_is_disabled_jobs_will_not_be_added_to_the_dashboa
280285
281286    /** 
282287     * @test 
288+      * 
289+      * @testWith [{"task_type": "http"}] 
290+      *           [{"task_type": "appengine"}] 
283291     */ 
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 
285293    {
286294        // Arrange 
295+         $ this withTaskType ($ test'task_type ' ]);
296+ 
287297        CloudTasksApi::fake ();
288298        Carbon::setTestNow (now ());
289299        $ tasksBeforecount ();
@@ -305,10 +315,15 @@ public function when_a_job_is_scheduled_it_will_be_added_as_such()
305315
306316    /** 
307317     * @test 
318+      * 
319+      * @testWith [{"task_type": "http"}] 
320+      *           [{"task_type": "appengine"}] 
308321     */ 
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 
310323    {
311324        // Arrange 
325+         $ this withTaskType ($ test'task_type ' ]);
326+ 
312327        \Illuminate \Support \Carbon::setTestNow (now ());
313328        CloudTasksApi::fake ();
314329        OpenIdVerificator::fake ();
@@ -331,10 +346,15 @@ public function when_a_job_is_running_it_will_be_updated_in_the_dashboard()
331346
332347    /** 
333348     * @test 
349+      * 
350+      *  @testWith [{"task_type": "http"}] 
351+      *            [{"task_type": "appengine"}] 
334352     */ 
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 
336354    {
337355        // Arrange 
356+         $ this withTaskType ($ test'task_type ' ]);
357+ 
338358        \Illuminate \Support \Carbon::setTestNow (now ());
339359        CloudTasksApi::fake ();
340360        OpenIdVerificator::fake ();
@@ -357,10 +377,15 @@ public function when_a_job_is_successful_it_will_be_updated_in_the_dashboard()
357377
358378    /** 
359379     * @test 
380+      * 
381+      *  @testWith [{"task_type": "http"}] 
382+      *            [{"task_type": "appengine"}] 
360383     */ 
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 
362385    {
363386        // Arrange 
387+         $ this withTaskType ($ test'task_type ' ]);
388+ 
364389        \Illuminate \Support \Carbon::setTestNow (now ());
365390        CloudTasksApi::fake ();
366391        OpenIdVerificator::fake ();
@@ -384,10 +409,15 @@ public function when_a_job_errors_it_will_be_updated_in_the_dashboard()
384409
385410    /** 
386411     * @test 
412+      * 
413+      *  @testWith [{"task_type": "http"}] 
414+      *            [{"task_type": "appengine"}] 
387415     */ 
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 
389417    {
390418        // Arrange 
419+         $ this withTaskType ($ test'task_type ' ]);
420+ 
391421        \Illuminate \Support \Carbon::setTestNow (now ());
392422        CloudTasksApi::fake ();
393423        OpenIdVerificator::fake ();
@@ -416,10 +446,15 @@ public function when_a_job_fails_it_will_be_updated_in_the_dashboard()
416446
417447    /** 
418448     * @test 
449+      * 
450+      *   @testWith [{"task_type": "http"}] 
451+      *             [{"task_type": "appengine"}] 
419452     */ 
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 
421454    {
422455        // Arrange 
456+         $ this withTaskType ($ test'task_type ' ]);
457+ 
423458        \Illuminate \Support \Carbon::setTestNow (now ());
424459        CloudTasksApi::fake ();
425460        OpenIdVerificator::fake ();
@@ -447,10 +482,15 @@ public function when_a_job_is_released_it_will_be_updated_in_the_dashboard()
447482
448483    /** 
449484     * @test 
485+      * 
486+      *   @testWith [{"task_type": "http"}] 
487+      *             [{"task_type": "appengine"}] 
450488     */ 
451-     public  function  job_release_delay_is_added_to_the_metadata ()
489+     public  function  job_release_delay_is_added_to_the_metadata (array   $ test 
452490    {
453491        // Arrange 
492+         $ this withTaskType ($ test'task_type ' ]);
493+ 
454494        \Illuminate \Support \Carbon::setTestNow (now ());
455495        CloudTasksApi::fake ();
456496        OpenIdVerificator::fake ();
0 commit comments