From 5dd4a7e5cabd451ec2c083aa424b2a9af60e3c8c Mon Sep 17 00:00:00 2001 From: Anna-Sokolowska Date: Wed, 11 May 2022 15:39:03 +0200 Subject: [PATCH] #89 - cs-fix --- tests/Feature/InviteAdminTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Feature/InviteAdminTest.php b/tests/Feature/InviteAdminTest.php index 3397a9fb..8b55fafb 100644 --- a/tests/Feature/InviteAdminTest.php +++ b/tests/Feature/InviteAdminTest.php @@ -38,15 +38,13 @@ public function testAdminCanSendInvitation(): void $this->actingAs($this->admin) ->post("/invitation", [ - "email" => "invited@example.com" + "email" => "invited@example.com", ]) ->assertSessionHasNoErrors(); Notification::assertSentOnDemand( InvitationEmailNotification::class, - function ($notification, $channels, $notifiable) { - return $notifiable->routes['mail'] === 'invited@example.com'; - } + fn ($notification, $channels, $notifiable) => $notifiable->routes["mail"] === "invited@example.com", ); }