Skip to content

Commit

Permalink
Merge pull request #1363 from afup/fix_tests_minuit
Browse files Browse the repository at this point in the history
correction des tests unitaires quand on les lançait à minuit
  • Loading branch information
agallou authored Nov 23, 2023
2 parents 4c96099 + 1a96f1f commit ef474d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/units/Afup/Association/Cotisations.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ protected function generateCotisationProvider()
],
[
'case' => 'La cotisation précédente expire dans 1 mois, la nouvelle cotisation doit expirer dans 13 mois',
'date_fin' => (new \DateTime('+1 month')),
'expected' => (new \DateTime('+1 month'))->add(new \DateInterval('P1Y')),
'date_fin' => (new \DateTimeImmutable('+1 month'))->setTime(14, 0),
'expected' => (new \DateTimeImmutable('+1 month'))->setTime(14, 0)->add(new \DateInterval('P1Y')),
],
];
}
Expand Down

0 comments on commit ef474d6

Please sign in to comment.