Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
615 B

<?php
use App\Domains\Identity\Actions\Onboarding\ResendVerificationEmail;
use App\Domains\Identity\Models\User;
use App\Domains\Identity\Notifications\VerifyEmailNotification;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Notification;
uses(Tests\TestCase::class, RefreshDatabase::class);
test('it can resend verification email', function () {
Notification::fake();
$user = User::factory()->unverified()->create();
$action = new ResendVerificationEmail();
$action->execute($user);
Notification::assertSentTo($user, VerifyEmailNotification::class);
});