Move code around for simplicity and fix tests.

This commit is contained in:
James Cole
2017-06-07 11:13:04 +02:00
parent 92c5cabd70
commit 8bbd3063ec
14 changed files with 271 additions and 251 deletions

View File

@@ -56,7 +56,7 @@ class UserEventHandlerTest extends TestCase
Mail::assertSent(
RequestedNewPasswordMail::class, function ($mail) use ($user) {
return $mail->hasTo($user->email) && $mail->ip === '127.0.0.1';
return $mail->hasTo($user->email) && $mail->ipAddress === '127.0.0.1';
}
);
@@ -78,7 +78,7 @@ class UserEventHandlerTest extends TestCase
// must send user an email:
Mail::assertSent(
RegisteredUserMail::class, function ($mail) use ($user) {
return $mail->hasTo($user->email) && $mail->ip === '127.0.0.1';
return $mail->hasTo($user->email) && $mail->ipAddress === '127.0.0.1';
}
);