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 8
8
strategy :
9
9
fail-fast : true
10
10
matrix :
11
- php : [8.2, 8.1, 8.0 ]
12
- laravel : [9.*]
11
+ php : [8.2, 8.1]
12
+ laravel : [10.*, 9.*]
13
13
dependency-version : [prefer-lowest, prefer-stable]
14
14
include :
15
+ - laravel : 10.*
16
+ testbench : 8.*
15
17
- laravel : 9.*
16
18
testbench : 7.*
17
- exclude :
18
- - laravel : 9.*
19
- php : 7.4
20
19
21
20
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
22
21
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"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 "
21
21
},
22
22
"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 "
26
26
},
27
27
"autoload" : {
28
28
"psr-4" : {
50
50
]
51
51
}
52
52
}
53
- }
53
+ }
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Mail \Mailable ;
6
6
use Illuminate \Support \Facades \Mail ;
7
+ use Illuminate \Support \Testing \Fakes \MailFake ;
7
8
use ProtoneMedia \LaravelVerifyNewEmail \InvalidEmailVerificationModelException ;
8
9
use ProtoneMedia \LaravelVerifyNewEmail \Mail \VerifyFirstEmail ;
9
10
use ProtoneMedia \LaravelVerifyNewEmail \Mail \VerifyNewEmail ;
@@ -102,14 +103,15 @@ public function it_can_generate_a_token_and_mail_it_to_the_new_email_address()
102
103
/** @test */
103
104
public function it_can_regenerate_a_token_and_mail_it ()
104
105
{
105
- Mail::fake ();
106
+ $ mailRoot = Mail::getFacadeRoot ();
107
+ Mail::swap (new MailFake ($ mailRoot ));
106
108
107
109
$ user = $ this ->user ();
108
110
109
111
$ pendingUserEmailFirst = $ user ->newEmail ('new@example.com ' );
110
112
111
113
// reset mail fake
112
- Mail::fake ( );
114
+ Mail::swap ( new MailFake ( $ mailRoot ) );
113
115
Mail::assertNothingQueued ();
114
116
115
117
$ pendingUserEmailSecond = $ user ->resendPendingEmailVerificationMail ();
You can’t perform that action at this time.
0 commit comments