-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1078 from CakeDC/feature/37116
Feature/37116
- Loading branch information
Showing
3 changed files
with
13 additions
and
13 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
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 |
---|---|---|
|
@@ -61,7 +61,7 @@ public function testRequestResetPasswordPostValidEmail() | |
]; | ||
$this->post('/users/request-reset-password', $data); | ||
$this->assertRedirect('/login'); | ||
$this->assertFlashMessage('Please check your email to continue with password reset process'); | ||
$this->assertFlashMessage('If the account is valid, the system will send an instructional email to the address on record.'); | ||
$userAfter = $Table->find()->where(['email' => '[email protected]'])->firstOrFail(); | ||
$this->assertNotEquals('token-4', $userAfter->token); | ||
$this->assertNotEmpty($userAfter->token); | ||
|
@@ -107,6 +107,6 @@ public function testRequestResetPasswordPostInvalidEmail() | |
]; | ||
$this->post('/users/request-reset-password', $data); | ||
$this->assertResponseOk(); | ||
$this->assertFlashMessage('User [email protected] was not found'); | ||
$this->assertFlashMessage('If the account is valid, the system will send an instructional email to the address on record.'); | ||
} | ||
} |
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