Skip to content

Commit

Permalink
Fix empty test
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 22, 2023
1 parent d379164 commit 069326b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galette/lib/Galette/Core/Password.php
Expand Up @@ -162,7 +162,7 @@ public function generateNewPassword($id_adh): bool
*
* @return boolean
*/
protected function cleanExpired(): bool
public function cleanExpired(): bool
{
$date = new \DateTime();
$date->sub(new \DateInterval('PT24H'));
Expand Down
3 changes: 2 additions & 1 deletion tests/Galette/Core/tests/units/Password.php
Expand Up @@ -269,7 +269,8 @@ public function testCleanExpiredWException()
throw new \LogicException('Error executing query!', 123);
};

$pass = new \Galette\Core\Password($this->zdb, true);
$pass = new \Galette\Core\Password($this->zdb, false);
$this->boolean($pass->cleanExpired())->isFalse();
}

/**
Expand Down

0 comments on commit 069326b

Please sign in to comment.