Skip to content

Commit

Permalink
adjust assertEqual flash message to nrew message
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed Mar 12, 2024
1 parent 74e9399 commit 8aaff78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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}");
Expand Down

0 comments on commit 8aaff78

Please sign in to comment.