|
1 | 1 | <?php |
2 | 2 |
|
3 | | -use Illuminate\Mail\Message; |
4 | | -use Illuminate\Support\Facades\Mail; |
5 | | -use Illuminate\Support\Facades\URL; |
6 | 3 | use Backstage\Mails\Enums\EventType; |
7 | 4 | use Backstage\Mails\Models\Mail as MailModel; |
8 | 5 | use Backstage\Mails\Models\MailEvent; |
9 | | - |
| 6 | +use Illuminate\Mail\Message; |
| 7 | +use Illuminate\Support\Facades\Mail; |
| 8 | +use Illuminate\Support\Facades\URL; |
10 | 9 | use function Pest\Laravel\assertDatabaseHas; |
11 | 10 | use function Pest\Laravel\post; |
12 | 11 |
|
|
27 | 26 | 'created_at' => '2023-05-19T22:09:32Z', |
28 | 27 | 'data' => [ |
29 | 28 | '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 | + ], |
31 | 36 | |
32 | 37 | 'subject' => 'Test', |
33 | 38 | |
|
59 | 64 | 'created_at' => '2023-05-19T22:09:32Z', |
60 | 65 | 'data' => [ |
61 | 66 | 'created_at' => '2025-01-09 14:17:29.059104+00', |
62 | | - 'email_id' => $mail->uuid, |
| 67 | + 'email_id' => 'dummy-id', |
63 | 68 | |
| 69 | + 'headers' => [ |
| 70 | + [ |
| 71 | + 'name' => config('mails.headers.uuid'), |
| 72 | + 'value' => $mail->uuid |
| 73 | + ] |
| 74 | + ], |
64 | 75 | 'subject' => 'Test', |
65 | 76 | |
66 | 77 | |
|
91 | 102 | 'created_at' => '2023-05-19T22:09:32Z', |
92 | 103 | 'data' => [ |
93 | 104 | '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 | + ], |
95 | 112 | |
96 | 113 | 'subject' => 'Test', |
97 | 114 | |
|
123 | 140 | 'created_at' => '2023-05-19T22:09:32Z', |
124 | 141 | 'data' => [ |
125 | 142 | '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 | + ], |
127 | 150 | |
128 | 151 | 'subject' => 'Test', |
129 | 152 | |
|
155 | 178 | 'created_at' => '2023-05-19T22:09:32Z', |
156 | 179 | 'data' => [ |
157 | 180 | 'created_at' => '2025-01-09 14:17:29.059104+00', |
158 | | - 'email_id' => $mail->uuid, |
| 181 | + 'email_id' => 'dummy-id', |
159 | 182 | |
| 183 | + 'headers' => [ |
| 184 | + [ |
| 185 | + 'name' => config('mails.headers.uuid'), |
| 186 | + 'value' => $mail->uuid |
| 187 | + ] |
| 188 | + ], |
160 | 189 | 'subject' => 'Test', |
161 | 190 | |
162 | 191 | |
|
187 | 216 | 'created_at' => '2023-05-19T22:09:32Z', |
188 | 217 | 'data' => [ |
189 | 218 | 'created_at' => '2025-01-09 14:17:29.059104+00', |
190 | | - 'email_id' => $mail->uuid, |
| 219 | + 'email_id' => 'dummy-id', |
191 | 220 | |
192 | 221 | 'subject' => 'Test', |
| 222 | + 'headers' => [ |
| 223 | + [ |
| 224 | + 'name' => config('mails.headers.uuid'), |
| 225 | + 'value' => $mail->uuid |
| 226 | + ] |
| 227 | + ], |
193 | 228 | |
194 | 229 | |
195 | 230 | |
|
0 commit comments