File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2929 <p><?= lang ('Auth.emailDate ' ) ?> <?= esc ($ date ) ?> </p>
3030</body>
3131
32- </html>
32+ </html>
Original file line number Diff line number Diff line change 3434 <p><?= lang ('Auth.emailDate ' ) ?> <?= esc ($ date ) ?> </p>
3535</body>
3636
37- </html>
37+ </html>
Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ public function testEmail2FAHandleSendsEmail(): void
134134
135135 // Should have sent an email with the code....
136136 $ this ->assertStringContainsString ('Your authentication code is: ' , service ('email ' )->archive ['body ' ]);
137+
138+ // Should have included the username in the email
139+ $ this ->assertStringContainsString ($ this ->user ->username , service ('email ' )->archive ['body ' ]);
137140 }
138141
139142 public function testEmail2FAVerifyFails (): void
@@ -248,6 +251,9 @@ public function testEmailActivateShow(): void
248251 '!<h1>[0-9]{6}</h1>! ' ,
249252 service ('email ' )->archive ['body ' ]
250253 );
254+
255+ // Should have included the username in the email
256+ $ this ->assertStringContainsString ($ this ->user ->username , service ('email ' )->archive ['body ' ]);
251257 }
252258
253259 public function testEmailActivateVerify (): void
You can’t perform that action at this time.
0 commit comments