-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check the page title and handle phpstan squawk
- Loading branch information
Showing
2 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]', | ||
|
@@ -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); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]', | ||
|