From 9ab8a5ca8b885c34b4f0d9d9996e0a58a668a588 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 27 Feb 2020 10:50:09 +0800 Subject: [PATCH] fix tests --- tests/HttpTest/ControllersTest/AuthControllerTest.php | 2 +- tests/HttpTest/ControllersTest/UserControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }