diff --git a/tests/HttpTest/ControllersTest/AuthControllerTest.php b/tests/HttpTest/ControllersTest/AuthControllerTest.php index db16b167..49f9b71c 100644 --- a/tests/HttpTest/ControllersTest/AuthControllerTest.php +++ b/tests/HttpTest/ControllersTest/AuthControllerTest.php @@ -581,7 +581,7 @@ class AuthControllerTest extends TestCase $site_name = option_localized('site_name'); $mailable = new ForgotPassword('url'); $mailable->build(); - $this->assertTrue($mailable->hasFrom(config('mail.username'), $site_name)); + $this->assertTrue($mailable->hasFrom(config('mail.from.address'))); $this->assertEquals(trans('auth.forgot.mail.title', ['sitename' => $site_name]), $mailable->subject); $this->assertEquals('mails.password-reset', $mailable->view); } diff --git a/tests/HttpTest/ControllersTest/UserControllerTest.php b/tests/HttpTest/ControllersTest/UserControllerTest.php index f329ff3c..d1f675c4 100644 --- a/tests/HttpTest/ControllersTest/UserControllerTest.php +++ b/tests/HttpTest/ControllersTest/UserControllerTest.php @@ -222,7 +222,7 @@ class UserControllerTest extends TestCase $site_name = option_localized('site_name'); $mailable = new EmailVerification('url'); $mailable->build(); - $this->assertTrue($mailable->hasFrom(config('mail.username'), $site_name)); + $this->assertTrue($mailable->hasFrom(config('mail.from.address'))); $this->assertEquals(trans('user.verification.mail.title', ['sitename' => $site_name]), $mailable->subject); $this->assertEquals('mails.email-verification', $mailable->view); }