it('sends an email when the button is pushed', function () {
login(); //don't mind this it's my own helper function
Mail::fake();
livewire(ListUsers::class)
->callAction('nodigGebruikerUit')
->callAction('send', ['email', '[email protected]']);
Mail::assertSent(TeamInvitationMail::class, function($mail) {
return $mail->hasTo('[email protected]');
});
});
it('sends an email when the button is pushed', function () {
login(); //don't mind this it's my own helper function
Mail::fake();
livewire(ListUsers::class)
->callAction('nodigGebruikerUit')
->callAction('send', ['email', '[email protected]']);
Mail::assertSent(TeamInvitationMail::class, function($mail) {
return $mail->hasTo('[email protected]');
});
});