Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed Mar 12, 2024
1 parent cf901db commit 78d85f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public function testRequestPasswordEmptyReference()
->will($this->returnValue($reference));
$this->Trait->Flash->expects($this->any())
->method('error')
->with('Token could not be reset');
->with('There was an error please contact Administrator');

$this->Trait->expects($this->never())
->method('redirect');
Expand Down Expand Up @@ -445,7 +445,7 @@ public function testEnsureUserActiveForResetPasswordFeature($ensureActive)
->will($this->returnValue($reference));
$this->Trait->Flash->expects($expectError)
->method('error')
->with('The user is not active');
->with('There was an error please contact Administrator');
$this->Trait->requestResetPassword();
$this->assertNotEquals('xxx', $this->table->get('00000000-0000-0000-0000-000000000001')->token);
}
Expand Down

0 comments on commit 78d85f4

Please sign in to comment.