From 4738c077d1ef4d400e7dd91c9fa797ddaf7ba788 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 15 Aug 2023 00:01:12 +0200 Subject: [PATCH] Fixed tests --- tests/Feature/Member/DeleteTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); }