mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Move code around for simplicity and fix tests.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user