diff --git a/tests/Actions/SendPasswordResetNotificationTest.php b/tests/Actions/SendPasswordResetNotificationTest.php index 32fe91e4..89151ab0 100644 --- a/tests/Actions/SendPasswordResetNotificationTest.php +++ b/tests/Actions/SendPasswordResetNotificationTest.php @@ -3,9 +3,9 @@ namespace Cone\Root\Tests\Actions; use Cone\Root\Actions\SendPasswordResetNotification; -use Cone\Root\Notifications\ResetPassword; use Cone\Root\Tests\TestCase; use Cone\Root\Tests\User; +use Illuminate\Auth\Notifications\ResetPassword; use Illuminate\Support\Facades\Notification; class SendPasswordResetNotificationTest extends TestCase @@ -24,6 +24,6 @@ public function test_send_password_reset_notifications_action(): void $action->perform($this->app['request']); - Notification::assertNotSentTo($user, ResetPassword::class); + Notification::assertSentTo($user, ResetPassword::class); } } diff --git a/tests/Actions/SendVerificationNotificationTest.php b/tests/Actions/SendVerificationNotificationTest.php index bd8c8b24..68bd4fcc 100644 --- a/tests/Actions/SendVerificationNotificationTest.php +++ b/tests/Actions/SendVerificationNotificationTest.php @@ -3,9 +3,9 @@ namespace Cone\Root\Tests\Actions; use Cone\Root\Actions\SendVerificationNotification; -use Cone\Root\Notifications\VerifyEmail; use Cone\Root\Tests\TestCase; use Cone\Root\Tests\User; +use Illuminate\Auth\Notifications\VerifyEmail; use Illuminate\Support\Facades\Notification; class SendVerificationNotificationTest extends TestCase @@ -16,7 +16,7 @@ public function test_send_verification_notifications_action(): void $action = new SendVerificationNotification; - $user = User::factory()->create(); + $user = User::factory()->unverified()->create(); $action->withQuery(fn () => User::query()); @@ -24,6 +24,6 @@ public function test_send_verification_notifications_action(): void $action->perform($this->app['request']); - Notification::assertNotSentTo($user, VerifyEmail::class); + Notification::assertSentTo($user, VerifyEmail::class); } }