Skip to content

Commit

Permalink
correction des tests unitaires quand on les lançait à minuit
Browse files Browse the repository at this point in the history
En lançant les tests à minuit, ceux-ci plantaient : https://github.com/afup/web/actions/runs/6963642073/job/18949581204

Cela car on ne précisait pas l'heure dans un des tests, c'est donc chose faite.
  • Loading branch information
agallou committed Nov 22, 2023
1 parent 4c96099 commit 1a96f1f
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 1a96f1f

Please sign in to comment.