Skip to content

Commit 1d65da7

Browse files
committed
Pint
1 parent 90d8868 commit 1d65da7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/IncomingTaskTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function it_reads_the_incoming_task(string $job, string $taskType)
4141

4242
// Assert
4343
Event::assertDispatched(function (TaskIncoming $event) use ($job) {
44-
return $event->task->shortTaskName() === '01HSR4V9QE2F4T0K8RBAYQ88KE-'.class_basename($job)
44+
return $event->task->fullyQualifiedTaskName() === 'projects/my-test-project/locations/europe-west6/queues/barbequeue/tasks/01HSR4V9QE2F4T0K8RBAYQ88KE-'.class_basename($job)
4545
&& $event->task->connection() === 'my-cloudtasks-connection'
4646
&& $event->task->queue() === 'barbequeue';
4747
});

tests/Support/DispatchedJob.php

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function run(): void
3131
default => throw new Error('Task does not have a request.'),
3232
};
3333

34-
3534
$this->testCase->call(
3635
method: 'POST',
3736
uri: route('cloud-tasks.handle-task'),

0 commit comments

Comments
 (0)