@@ -31,7 +31,7 @@ public function testDispatchesNotificationSent()
31
31
32
32
Event::listen (
33
33
NotificationSent::class,
34
- function (NotificationSent $ notification ) use (&$ notificationWasSent , $ user ) {
34
+ function (NotificationSent $ notification ) use (&$ notificationWasSent , $ user ) {
35
35
$ notificationWasSent = true ;
36
36
/**
37
37
* Confirm that NotificationSent can be serialized/unserialized as
@@ -43,7 +43,7 @@ function(NotificationSent $notification) use (&$notificationWasSent, $user) {
43
43
$ this ->assertTrue ($ user ->is ($ afterSerialization ->notifiable ));
44
44
45
45
$ this ->assertEqualsCanonicalizing ($ notification ->notification , $ afterSerialization ->notification );
46
- });
46
+ });
47
47
48
48
$ user ->notify (new SentMessageMailNotification ());
49
49
@@ -58,7 +58,6 @@ class SentMessageUser extends Model
58
58
public $ timestamps = false ;
59
59
}
60
60
61
-
62
61
class SentMessageMailNotification extends Notification
63
62
{
64
63
public function via (): array
@@ -70,7 +69,7 @@ public function toMail(object $notifiable): MailMessage
70
69
{
71
70
return (new MailMessage )
72
71
->line ('Example notification with attachment. ' )
73
- ->attach (__DIR__ . '/Fixtures/blank_document.pdf ' , [
72
+ ->attach (__DIR__ . '/Fixtures/blank_document.pdf ' , [
74
73
'as ' => 'blank_document.pdf ' ,
75
74
'mime ' => 'application/pdf ' ,
76
75
]);
0 commit comments