diff --git a/app/Mail/ResetPassword.php b/app/Mail/ResetPassword.php index 63c2f704..0cdc91fe 100644 --- a/app/Mail/ResetPassword.php +++ b/app/Mail/ResetPassword.php @@ -11,11 +11,10 @@ class ResetPassword extends Mailable use Queueable; use SerializesModels; - protected $token; - - public function __construct($token) - { - $this->token = $token; + public function __construct( + protected $token + ) { + // } public function build() diff --git a/tests/Unit/Mail/ResetPasswordTest.php b/tests/Unit/Mail/ResetPasswordTest.php new file mode 100644 index 00000000..4f786b13 --- /dev/null +++ b/tests/Unit/Mail/ResetPasswordTest.php @@ -0,0 +1,19 @@ +assertSeeInHtml( + string: 'Click here to change your password', // phpcs:ignore + escape: false, + ); + } +}