From 6687710328b176ba0f1a911f37554d202c7cb34f Mon Sep 17 00:00:00 2001 From: Daniel de Wit Date: Fri, 23 Apr 2021 13:28:31 +0200 Subject: [PATCH] Fix ResetPasswordTest By manually notifying the user before the GraphQL mutation, we are not testing it properly. --- tests/Integration/GraphQL/Mutations/ForgotPasswordTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/Integration/GraphQL/Mutations/ForgotPasswordTest.php b/tests/Integration/GraphQL/Mutations/ForgotPasswordTest.php index 402a318..4683da5 100644 --- a/tests/Integration/GraphQL/Mutations/ForgotPasswordTest.php +++ b/tests/Integration/GraphQL/Mutations/ForgotPasswordTest.php @@ -7,7 +7,6 @@ use DanielDeWit\LighthouseSanctum\Tests\Integration\AbstractIntegrationTest; use DanielDeWit\LighthouseSanctum\Tests\stubs\Users\UserHasApiTokens; use Illuminate\Auth\Notifications\ResetPassword; -use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification; use Illuminate\Support\Facades\Notification; use Laravel\Sanctum\Sanctum; @@ -25,8 +24,6 @@ public function it_sends_a_reset_password_notification(): void 'email' => 'john.doe@gmail.com', ]); - $user->notify(new ResetPasswordNotification('bla')); - Sanctum::actingAs($user); $this->graphQL(/** @lang GraphQL */ '