You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertSame("Did not see expected recipient [[email protected] (Taylor Otwell)] in email 'to' recipients.\nFailed asserting that false is true.", $e->getMessage());
58
+
$this->assertSame("Did not see expected recipient in email 'to' recipients.\nExpected: [[email protected] (Taylor Otwell)]\nActual: [[email protected]]\nFailed asserting that false is true.", $e->getMessage());
59
59
}
60
60
61
61
$mailable = newWelcomeMailableStub;
@@ -101,7 +101,7 @@ public function testMailableSetsRecipientsCorrectly()
101
101
if (! is_string($address)) {
102
102
$address = json_encode($address);
103
103
}
104
-
$this->assertSame("Did not see expected recipient [{$address}] in email 'to' recipients.\nFailed asserting that false is true.", $e->getMessage());
104
+
$this->assertSame("Did not see expected recipient in email 'to' recipients.\nExpected: [{$address}]\nActual: [none]\nFailed asserting that false is true.", $e->getMessage());
105
105
}
106
106
}
107
107
}
@@ -134,7 +134,7 @@ public function testMailableSetsCcRecipientsCorrectly()
$this->assertSame("Did not see expected recipient [[email protected] (Taylor Otwell)] in email 'cc' recipients.\nFailed asserting that false is true.", $e->getMessage());
137
+
$this->assertSame("Did not see expected recipient in email 'cc' recipients.\nExpected: [[email protected] (Taylor Otwell)]\nActual: [[email protected]]\nFailed asserting that false is true.", $e->getMessage());
138
138
}
139
139
140
140
$mailable = newWelcomeMailableStub;
@@ -192,7 +192,7 @@ public function testMailableSetsCcRecipientsCorrectly()
192
192
if (! is_string($address)) {
193
193
$address = json_encode($address);
194
194
}
195
-
$this->assertSame("Did not see expected recipient [{$address}] in email 'cc' recipients.\nFailed asserting that false is true.", $e->getMessage());
195
+
$this->assertSame("Did not see expected recipient in email 'cc' recipients.\nExpected: [{$address}]\nActual: [none]\nFailed asserting that false is true.", $e->getMessage());
196
196
}
197
197
}
198
198
}
@@ -225,7 +225,7 @@ public function testMailableSetsBccRecipientsCorrectly()
$this->assertSame("Did not see expected recipient [[email protected] (Taylor Otwell)] in email 'bcc' recipients.\nFailed asserting that false is true.", $e->getMessage());
228
+
$this->assertSame("Did not see expected recipient in email 'bcc' recipients.\nExpected: [[email protected] (Taylor Otwell)]\nActual: [[email protected]]\nFailed asserting that false is true.", $e->getMessage());
229
229
}
230
230
231
231
$mailable = newWelcomeMailableStub;
@@ -283,7 +283,7 @@ public function testMailableSetsBccRecipientsCorrectly()
283
283
if (! is_string($address)) {
284
284
$address = json_encode($address);
285
285
}
286
-
$this->assertSame("Did not see expected recipient [{$address}] in email 'bcc' recipients.\nFailed asserting that false is true.", $e->getMessage());
286
+
$this->assertSame("Did not see expected recipient in email 'bcc' recipients.\nExpected: [{$address}]\nActual: [none]\nFailed asserting that false is true.", $e->getMessage());
287
287
}
288
288
}
289
289
}
@@ -316,7 +316,7 @@ public function testMailableSetsReplyToCorrectly()
$this->assertSame("Did not see expected address [[email protected] (Taylor Otwell)] as email 'reply to' recipient.\nFailed asserting that false is true.", $e->getMessage());
319
+
$this->assertSame("Did not see expected address as email 'reply to' recipient.\nExpected: [[email protected] (Taylor Otwell)]\nActual: [[email protected]]\nFailed asserting that false is true.", $e->getMessage());
320
320
}
321
321
322
322
$mailable = newWelcomeMailableStub;
@@ -363,7 +363,7 @@ public function testMailableSetsReplyToCorrectly()
363
363
if (! is_string($address)) {
364
364
$address = json_encode($address);
365
365
}
366
-
$this->assertSame("Did not see expected address [{$address}] as email 'reply to' recipient.\nFailed asserting that false is true.", $e->getMessage());
366
+
$this->assertSame("Did not see expected address as email 'reply to' recipient.\nExpected: [{$address}]\nActual: [none]\nFailed asserting that false is true.", $e->getMessage());
367
367
}
368
368
}
369
369
}
@@ -396,7 +396,7 @@ public function testMailableSetsFromCorrectly()
$this->assertSame("Email was not from expected address [[email protected] (Taylor Otwell)].\nFailed asserting that false is true.", $e->getMessage());
399
+
$this->assertSame("Email was not from expected address.\nExpected: [[email protected] (Taylor Otwell)]\nActual: [[email protected]]\nFailed asserting that false is true.", $e->getMessage());
400
400
}
401
401
402
402
$mailable = newWelcomeMailableStub;
@@ -443,7 +443,7 @@ public function testMailableSetsFromCorrectly()
443
443
if (! is_string($address)) {
444
444
$address = json_encode($address);
445
445
}
446
-
$this->assertSame("Email was not from expected address [{$address}].\nFailed asserting that false is true.", $e->getMessage());
446
+
$this->assertSame("Email was not from expected address.\nExpected: [{$address}]\nActual: [none]\nFailed asserting that false is true.", $e->getMessage());
447
447
}
448
448
}
449
449
}
@@ -629,7 +629,7 @@ public function testMailableMetadataGetsSent()
629
629
$mailable->assertHasMetadata('test', 'test');
630
630
$this->fail();
631
631
} catch (AssertionFailedError$e) {
632
-
$this->assertSame("Did not see expected key [test] and value [test] in email metadata.\nFailed asserting that false is true.", $e->getMessage());
632
+
$this->assertSame("Email metadata does not match expected value.\nExpected: [test] => [test]\nActual: key [test] not found\nFailed asserting that false is true.", $e->getMessage());
633
633
}
634
634
}
635
635
@@ -664,7 +664,7 @@ public function testMailableTagGetsSent()
664
664
$mailable->assertHasTag('bar');
665
665
$this->fail();
666
666
} catch (AssertionFailedError$e) {
667
-
$this->assertSame("Did not see expected tag [bar] in email tags.\nFailed asserting that false is true.", $e->getMessage());
667
+
$this->assertSame("Did not see expected tag in email tags.\nExpected: [bar]\nActual: [test, foo]\nFailed asserting that false is true.", $e->getMessage());
668
668
}
669
669
}
670
670
@@ -1088,7 +1088,7 @@ public function build()
1088
1088
$mailable->assertHasSubject('Foo Subject');
1089
1089
$this->fail();
1090
1090
} catch (AssertionFailedError$e) {
1091
-
$this->assertSame("Did not see expected text [Foo Subject] in email subject.\nFailed asserting that false is true.", $e->getMessage());
1091
+
$this->assertStringContainsString("Email subject does not match expected value.\nExpected: [Foo Subject]\nActual:", $e->getMessage());
0 commit comments