File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 88 strategy :
99 fail-fast : true
1010 matrix :
11- php : [8.2, 8.1, 8.0 ]
12- laravel : [9.*]
11+ php : [8.2, 8.1]
12+ laravel : [10.*, 9.*]
1313 dependency-version : [prefer-lowest, prefer-stable]
1414 include :
15+ - laravel : 10.*
16+ testbench : 8.*
1517 - laravel : 9.*
1618 testbench : 7.*
17- exclude :
18- - laravel : 9.*
19- php : 7.4
2019
2120 name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2221
Original file line number Diff line number Diff line change 1616 }
1717 ],
1818 "require" : {
19- "php" : " ^8.0 || ^8.1 || ^8.2" ,
20- "illuminate/support" : " ^9.0"
19+ "php" : " ^8.1| ^8.2" ,
20+ "illuminate/support" : " ^9.0|^10.0 "
2121 },
2222 "require-dev" : {
23- "nesbot/carbon" : " ^2.63 " ,
24- "orchestra/testbench" : " ^7.0" ,
25- "phpunit/phpunit" : " ^9.4 "
23+ "nesbot/carbon" : " ^2.66 " ,
24+ "orchestra/testbench" : " ^7.0|^8.0 " ,
25+ "phpunit/phpunit" : " ^9.5.10 "
2626 },
2727 "autoload" : {
2828 "psr-4" : {
5050 ]
5151 }
5252 }
53- }
53+ }
Original file line number Diff line number Diff line change 44
55use Illuminate \Mail \Mailable ;
66use Illuminate \Support \Facades \Mail ;
7+ use Illuminate \Support \Testing \Fakes \MailFake ;
78use ProtoneMedia \LaravelVerifyNewEmail \InvalidEmailVerificationModelException ;
89use ProtoneMedia \LaravelVerifyNewEmail \Mail \VerifyFirstEmail ;
910use ProtoneMedia \LaravelVerifyNewEmail \Mail \VerifyNewEmail ;
@@ -102,14 +103,15 @@ public function it_can_generate_a_token_and_mail_it_to_the_new_email_address()
102103 /** @test */
103104 public function it_can_regenerate_a_token_and_mail_it ()
104105 {
105- Mail::fake ();
106+ $ mailRoot = Mail::getFacadeRoot ();
107+ Mail::swap (new MailFake ($ mailRoot ));
106108
107109 $ user = $ this ->user ();
108110
109111 $ pendingUserEmailFirst =
$ user->
newEmail (
'[email protected] ' );
110112
111113 // reset mail fake
112- Mail::fake ( );
114+ Mail::swap ( new MailFake ( $ mailRoot ) );
113115 Mail::assertNothingQueued ();
114116
115117 $ pendingUserEmailSecond = $ user ->resendPendingEmailVerificationMail ();
You can’t perform that action at this time.
0 commit comments