Skip to content

Commit 0750998

Browse files
Update Test.ResetPasswordController.tpl.php
More precise fetching for email body so that the link is not truncated as stated here SymfonyCasts/reset-password-bundle#345
1 parent dcd2260 commit 0750998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/resetPassword/Test.ResetPasswordController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ 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-
$email = $messages[0]->toString();
73+
$email = $messages[0]->getTextBody();
7474
preg_match('#(/reset-password/reset/[a-zA-Z0-9]+)#', $email, $resetLink);
7575

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

0 commit comments

Comments
 (0)