File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,15 @@ public function it_extracts_the_from_address_and_or_name()
100
100
->from (null , 'Marick ' )
101
101
)->send ();
102
102
103
- $ this ->assertTrue ($ email ->hasFrom ());
104
- $ this ->assertEquals (config ('mail.from.address ' ), $ email ->getFromAddress ());
105
- $ this ->assertEquals ('Marick ' , $ email ->getFromName ());
103
+ // 8.x no longer accepts an empty address.
104
+ // https://github.com/laravel/framework/pull/39035
105
+ if (version_compare (app ()->version (), '8.0.0 ' , '>= ' )) {
106
+ $ this ->assertFalse ($ email ->hasFrom ());
107
+ } else {
108
+ $ this ->assertTrue ($ email ->hasFrom ());
109
+ $ this ->assertEquals (config ('mail.from.address ' ), $ email ->getFromAddress ());
110
+ $ this ->assertEquals ('Marick ' , $ email ->getFromName ());
111
+ }
106
112
}
107
113
}
108
114
You can’t perform that action at this time.
0 commit comments