diff --git a/src/Resources/skeleton/registration/Test.WithVerify.tpl.php b/src/Resources/skeleton/registration/Test.WithVerify.tpl.php index 2ed1b49bce..1b911c4329 100644 --- a/src/Resources/skeleton/registration/Test.WithVerify.tpl.php +++ b/src/Resources/skeleton/registration/Test.WithVerify.tpl.php @@ -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]' => 'me@example.com', @@ -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); diff --git a/src/Resources/skeleton/registration/Test.WithoutVerify.tpl.php b/src/Resources/skeleton/registration/Test.WithoutVerify.tpl.php index e6ab844e94..9b94778051 100644 --- a/src/Resources/skeleton/registration/Test.WithoutVerify.tpl.php +++ b/src/Resources/skeleton/registration/Test.WithoutVerify.tpl.php @@ -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]' => 'me@example.com',