Skip to content

Commit

Permalink
check the page title and handle phpstan squawk
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Apr 19, 2024
1 parent 477a222 commit 4f467ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/skeleton/registration/Test.WithVerify.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function testRegister(): void
// Register a new user
$this->client->request('GET', '/register');
self::assertResponseIsSuccessful();
self::assertPageTitleContains('Register');

$this->client->submitForm('Register', [
'registration_form[email]' => '[email protected]',
Expand Down Expand Up @@ -61,6 +62,7 @@ public function testRegister(): void
/** @var TemplatedEmail $templatedEmail */
$templatedEmail = $messages[0];
$messageBody = $templatedEmail->getHtmlBody();
self::assertIsString($messageBody);

preg_match('#(http://localhost/verify/email.+)">#', $messageBody, $resetLink);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function testRegister(): void
// Register a new user
$this->client->request('GET', '/register');
self::assertResponseIsSuccessful();
self::assertPageTitleContains('Register');

$this->client->submitForm('Register', [
'registration_form[email]' => '[email protected]',
Expand Down

0 comments on commit 4f467ec

Please sign in to comment.