@@ -578,7 +578,7 @@ public function test_it_uses_a_server_local_lease_counter_for_workflow_task_atte
578578 ): void {
579579 $ mock ->shouldReceive ('poll ' )
580580 ->times (2 )
581- ->with (null , 'external-workflows ' , 10 , null , 'default ' , [] )
581+ ->with (null , 'external-workflows ' , 10 , null , 'default ' )
582582 ->andReturn (
583583 [[
584584 'task_id ' => $ task ->id ,
@@ -1390,7 +1390,7 @@ public function test_it_drops_claimed_workflow_tasks_when_the_bridge_cannot_buil
13901390 $ this ->mock (WorkflowTaskBridge::class, function (MockInterface $ mock ) use ($ recordedAt ): void {
13911391 $ mock ->shouldReceive ('poll ' )
13921392 ->once ()
1393- ->with (null , 'external-workflows ' , 10 , null , 'default ' , [] )
1393+ ->with (null , 'external-workflows ' , 10 , null , 'default ' )
13941394 ->andReturn ([
13951395 [
13961396 'task_id ' => 'wf-task-missing-row ' ,
@@ -1461,7 +1461,7 @@ public function test_it_does_not_fall_back_to_a_local_ready_scan_when_the_workfl
14611461 $ this ->mock (WorkflowTaskBridge::class, function (MockInterface $ mock ): void {
14621462 $ mock ->shouldReceive ('poll ' )
14631463 ->once ()
1464- ->with (null , 'external-workflows ' , 10 , null , 'default ' , [] )
1464+ ->with (null , 'external-workflows ' , 10 , null , 'default ' )
14651465 ->andReturn ([]);
14661466 });
14671467
@@ -1476,42 +1476,6 @@ public function test_it_does_not_fall_back_to_a_local_ready_scan_when_the_workfl
14761476 ->assertJsonPath ('task ' , null );
14771477 }
14781478
1479- public function test_it_passes_supported_workflow_types_to_the_workflow_bridge_poll (): void
1480- {
1481- Queue::fake ();
1482-
1483- $ this ->configureWorkflowTypes ();
1484- $ this ->createNamespace ('default ' , 'Default namespace ' );
1485-
1486- $ this ->mock (WorkflowTaskBridge::class, function (MockInterface $ mock ): void {
1487- $ mock ->shouldReceive ('poll ' )
1488- ->once ()
1489- ->with (
1490- null ,
1491- 'external-workflows ' ,
1492- 10 ,
1493- null ,
1494- 'default ' ,
1495- ['tests.external-greeting-workflow ' ],
1496- )
1497- ->andReturn ([]);
1498- });
1499-
1500- $ this ->registerWorker (
1501- 'php-worker-typed-bridge ' ,
1502- 'external-workflows ' ,
1503- supportedWorkflowTypes: ['tests.external-greeting-workflow ' ],
1504- );
1505-
1506- $ this ->withHeaders ($ this ->workerHeaders ())
1507- ->postJson ('/api/worker/workflow-tasks/poll ' , [
1508- 'worker_id ' => 'php-worker-typed-bridge ' ,
1509- 'task_queue ' => 'external-workflows ' ,
1510- ])
1511- ->assertOk ()
1512- ->assertJsonPath ('task ' , null );
1513- }
1514-
15151479 public function test_it_passes_the_next_visible_workflow_task_deadline_into_long_polling (): void
15161480 {
15171481 Queue::fake ();
0 commit comments