Skip to content

Commit

Permalink
fix test testEnsureUserActiveForResetPasswordFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed Mar 13, 2024
1 parent d0fcabb commit 27dbd87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public function testRequestPasswordEmptyReference()
*/
public function testEnsureUserActiveForResetPasswordFeature($ensureActive)
{
$expectError = $this->never();
$expectError = $this->any();

if ($ensureActive) {
Configure::write('Users.Registration.ensureActive', true);
Expand All @@ -444,8 +444,8 @@ public function testEnsureUserActiveForResetPasswordFeature($ensureActive)
->with('reference')
->will($this->returnValue($reference));
$this->Trait->Flash->expects($expectError)
->method('error')
->with('There was an error please contact Administrator');
->method('success')
->with('If the account is valid, the system will send an instructional email to the address on record.');
$this->Trait->requestResetPassword();
$this->assertNotEquals('xxx', $this->table->get('00000000-0000-0000-0000-000000000001')->token);
}
Expand Down

0 comments on commit 27dbd87

Please sign in to comment.