Skip to content

Commit 873a8b2

Browse files
committed
test: resend driver cases
1 parent 7686661 commit 873a8b2

File tree

1 file changed

+45
-10
lines changed

1 file changed

+45
-10
lines changed

tests/ResendTest.php

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

3-
use Illuminate\Mail\Message;
4-
use Illuminate\Support\Facades\Mail;
5-
use Illuminate\Support\Facades\URL;
63
use Backstage\Mails\Enums\EventType;
74
use Backstage\Mails\Models\Mail as MailModel;
85
use Backstage\Mails\Models\MailEvent;
9-
6+
use Illuminate\Mail\Message;
7+
use Illuminate\Support\Facades\Mail;
8+
use Illuminate\Support\Facades\URL;
109
use function Pest\Laravel\assertDatabaseHas;
1110
use function Pest\Laravel\post;
1211

@@ -27,7 +26,13 @@
2726
'created_at' => '2023-05-19T22:09:32Z',
2827
'data' => [
2928
'created_at' => '2025-01-09 14:17:29.059104+00',
30-
'email_id' => $mail->uuid,
29+
'email_id' => 'dummy-id',
30+
'headers' => [
31+
[
32+
'name' => config('mails.headers.uuid'),
33+
'value' => $mail->uuid
34+
]
35+
],
3136
'from' => '[email protected]',
3237
'subject' => 'Test',
3338
'to' => ['[email protected]'],
@@ -59,8 +64,14 @@
5964
'created_at' => '2023-05-19T22:09:32Z',
6065
'data' => [
6166
'created_at' => '2025-01-09 14:17:29.059104+00',
62-
'email_id' => $mail->uuid,
67+
'email_id' => 'dummy-id',
6368
'from' => '[email protected]',
69+
'headers' => [
70+
[
71+
'name' => config('mails.headers.uuid'),
72+
'value' => $mail->uuid
73+
]
74+
],
6475
'subject' => 'Test',
6576
'to' => ['[email protected]'],
6677
'cc' => ['[email protected]'],
@@ -91,7 +102,13 @@
91102
'created_at' => '2023-05-19T22:09:32Z',
92103
'data' => [
93104
'created_at' => '2025-01-09 14:17:29.059104+00',
94-
'email_id' => $mail->uuid,
105+
'email_id' => 'dummy-id',
106+
'headers' => [
107+
[
108+
'name' => config('mails.headers.uuid'),
109+
'value' => $mail->uuid
110+
]
111+
],
95112
'from' => '[email protected]',
96113
'subject' => 'Test',
97114
'to' => ['[email protected]'],
@@ -123,7 +140,13 @@
123140
'created_at' => '2023-05-19T22:09:32Z',
124141
'data' => [
125142
'created_at' => '2025-01-09 14:17:29.059104+00',
126-
'email_id' => $mail->uuid,
143+
'email_id' => 'dummy-id',
144+
'headers' => [
145+
[
146+
'name' => config('mails.headers.uuid'),
147+
'value' => $mail->uuid
148+
]
149+
],
127150
'from' => '[email protected]',
128151
'subject' => 'Test',
129152
'to' => ['[email protected]'],
@@ -155,8 +178,14 @@
155178
'created_at' => '2023-05-19T22:09:32Z',
156179
'data' => [
157180
'created_at' => '2025-01-09 14:17:29.059104+00',
158-
'email_id' => $mail->uuid,
181+
'email_id' => 'dummy-id',
159182
'from' => '[email protected]',
183+
'headers' => [
184+
[
185+
'name' => config('mails.headers.uuid'),
186+
'value' => $mail->uuid
187+
]
188+
],
160189
'subject' => 'Test',
161190
'to' => ['[email protected]'],
162191
'cc' => ['[email protected]'],
@@ -187,9 +216,15 @@
187216
'created_at' => '2023-05-19T22:09:32Z',
188217
'data' => [
189218
'created_at' => '2025-01-09 14:17:29.059104+00',
190-
'email_id' => $mail->uuid,
219+
'email_id' => 'dummy-id',
191220
'from' => '[email protected]',
192221
'subject' => 'Test',
222+
'headers' => [
223+
[
224+
'name' => config('mails.headers.uuid'),
225+
'value' => $mail->uuid
226+
]
227+
],
193228
'to' => ['[email protected]'],
194229
'cc' => ['[email protected]'],
195230
'bcc' => ['[email protected]'],

0 commit comments

Comments
 (0)