]> git.agnieray.net Git - galette.git/commitdiff
Fix reminders unit tests
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 3 Oct 2020 10:03:50 +0000 (12:03 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sat, 3 Oct 2020 10:34:16 +0000 (12:34 +0200)
tests/Galette/Repository/tests/units/Reminders.php

index b2a8bd941f363854dcc5fc4a4d16d97375bd742d..449df41092ca6a221000bfed67553e295636f662 100644 (file)
@@ -357,11 +357,12 @@ class Reminders extends atoum
         $this->array($lreminders->getList($this->zdb))->hasSize(0);
         $this->array($ireminders->getList($this->zdb))->hasSize(0);
 
-        //create contribution, late by 30 days
+        //create contribution, late by 1 month minus 1 day
         $now = new \DateTime();
         $date_begin = clone $now;
         $date_begin->sub(new \DateInterval('P1Y'));
-        $date_begin->sub(new \DateInterval('P30D'));
+        $date_begin->sub(new \DateInterval('P1M'));
+        $date_begin->add(new \DateInterval('P1D'));
         $date_end = clone $date_begin;
         $date_end->add(new \DateInterval('P1Y'));