Skip to content

Commit b9bd060

Browse files
Added type-hinting
1 parent 0750998 commit b9bd060

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/resetPassword/Test.ResetPasswordController.tpl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public function testResetPasswordController(): void
7070
self::assertStringContainsString('This link will expire in 1 hour', $crawler->html());
7171

7272
// Test the link sent in the email is valid
73+
/** @var array<TemplatedEmail> $messages */
7374
$email = $messages[0]->getTextBody();
75+
self::assertIsString($emailBody);
7476
preg_match('#(/reset-password/reset/[a-zA-Z0-9]+)#', $email, $resetLink);
7577

7678
$this->client->request('GET', $resetLink[1]);

0 commit comments

Comments
 (0)