]> git.agnieray.net Git - galette.git/commitdiff
Fix empty test
authorJohan Cwiklinski <johan@x-tnd.be>
Wed, 22 Mar 2023 06:35:18 +0000 (07:35 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Wed, 22 Mar 2023 06:43:50 +0000 (07:43 +0100)
galette/lib/Galette/Core/Password.php
tests/Galette/Core/tests/units/Password.php

index 127d7b7f5f17e61158420c7e2e1440b4f727f74e..7476549f4c07ae29a5987c6eb3c345035418e250 100644 (file)
@@ -162,7 +162,7 @@ class Password extends AbstractPassword
      *
      * @return boolean
      */
-    protected function cleanExpired(): bool
+    public function cleanExpired(): bool
     {
         $date = new \DateTime();
         $date->sub(new \DateInterval('PT24H'));
index 60a979f65eaebd13c565905733ae4b64bbc2c1a6..7ef0655e654326668955f103021b06500842860b 100644 (file)
@@ -269,7 +269,8 @@ class Password extends atoum
             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();
     }
 
     /**