Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/resetPassword/Test.ResetPasswordController.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public function testResetPasswordController(): void
self::assertStringContainsString('This link will expire in 1 hour', $crawler->html());

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

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