Fixed tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2023-08-15 00:01:12 +02:00
parent f178d3ec86
commit 4738c077d1
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class DeleteTest extends TestCase
$response->assertRedirect('/member'); $response->assertRedirect('/member');
Queue::assertPushed(DeleteAction::class, fn ($job) => 123 === $job->namiId); DeleteAction::assertPushed();
$this->assertDatabaseMissing('members', [ $this->assertDatabaseMissing('members', [
'id' => $member->id, 'id' => $member->id,
]); ]);
@ -54,7 +54,7 @@ class DeleteTest extends TestCase
$this->withoutExceptionHandling()->login()->loginNami(); $this->withoutExceptionHandling()->login()->loginNami();
$member = Member::factory()->defaults()->inNami(123)->create(); $member = Member::factory()->defaults()->inNami(123)->create();
dispatch(new DeleteAction(123)); DeleteAction::dispatch(123);
app(MemberFake::class)->assertDeleted(123, Carbon::parse('yesterday')); app(MemberFake::class)->assertDeleted(123, Carbon::parse('yesterday'));
} }