-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust assertEqual flash message to nrew message
- Loading branch information
Andres Campanario
committed
Mar 12, 2024
1 parent
74e9399
commit 8aaff78
Showing
1 changed file
with
2 additions
and
2 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 |
---|---|---|
|
@@ -53,7 +53,7 @@ public function testRequestResetPasswordPostValidEmail() | |
{ | ||
$Table = TableRegistry::getTableLocator()->get('CakeDC/Users.Users'); | ||
$userBefore = $Table->find()->where(['email' => '[email protected]'])->firstOrFail(); | ||
$this->assertEquals('There was an error please contact Administrator', $userBefore->token); | ||
$this->assertEquals('token-4', $userBefore->token); | ||
$this->enableRetainFlashMessages(); | ||
$this->enableSecurityToken(); | ||
$data = [ | ||
|
@@ -63,7 +63,7 @@ public function testRequestResetPasswordPostValidEmail() | |
$this->assertRedirect('/login'); | ||
$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('There was an error please contact Administrator', $userAfter->token); | ||
$this->assertNotEquals('token-4', $userAfter->token); | ||
$this->assertNotEmpty($userAfter->token); | ||
|
||
$this->get("/users/reset-password/{$userAfter->token}"); | ||
|