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', 'test@example.com']);
Mail::assertSent(TeamInvitationMail::class, function($mail) {
return $mail->hasTo('test@example.com');
});
});
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', 'test@example.com']);
Mail::assertSent(TeamInvitationMail::class, function($mail) {
return $mail->hasTo('test@example.com');
});
});