Skip to content

Commit

Permalink
add more meaningful mail assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcergolj committed Feb 9, 2021
1 parent 39879bf commit 31efd73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Feature/Http/Livewire/Profile/UpdateEmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public function email_confirmation_is_sent()
->call('submit');

Mail::assertQueued(NewEmailConfirmationMail::class, function ($mail) {
return $mail->hasTo('[email protected]');
$this->assertTrue($mail->hasTo('[email protected]'), 'Unexpected to');
return true;
});
}

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/Http/Livewire/Profile/UpdatePasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public function email_notification_is_sent()
->call('submit');

Mail::assertQueued(PasswordChangedMail::class, function ($mail) {
return $mail->hasTo($this->user->email);
$this->assertTrue($mail->hasTo($this->user->email), 'Unexpected to');
return true;
});
}

Expand Down

0 comments on commit 31efd73

Please sign in to comment.