diff --git a/tests/Feature/Member/DeleteTest.php b/tests/Feature/Member/DeleteTest.php index 60c4c2a8..5dfd65ef 100644 --- a/tests/Feature/Member/DeleteTest.php +++ b/tests/Feature/Member/DeleteTest.php @@ -26,7 +26,7 @@ class DeleteTest extends TestCase $response->assertRedirect('/member'); - Queue::assertPushed(DeleteAction::class, fn ($job) => 123 === $job->namiId); + DeleteAction::assertPushed(); $this->assertDatabaseMissing('members', [ 'id' => $member->id, ]); @@ -54,7 +54,7 @@ class DeleteTest extends TestCase $this->withoutExceptionHandling()->login()->loginNami(); $member = Member::factory()->defaults()->inNami(123)->create(); - dispatch(new DeleteAction(123)); + DeleteAction::dispatch(123); app(MemberFake::class)->assertDeleted(123, Carbon::parse('yesterday')); }