Projet

Général

Profil

Actions

Anomalie #1796

ouvert

Tests failure on leap year

Ajouté par Johan Cwiklinski il y a environ 2 mois. Mis à jour il y a environ 2 mois.

Statut:
Nouveau
Priorité:
Bas
Assigné à:
Catégorie:
Core
Version cible:
-
Début:
01/03/2024
Echéance:
% réalisé:

0%

Temps estimé:
Version utilisée:

Description

Today, unit test has failed because of the 29th of february:

There were 2 failures:

1) Galette\Entity\test\units\Contribution::testNextYear
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'2024-02-28'
+'2024-02-29'

/home/runner/work/galette/galette/tests/Galette/Entity/tests/units/Contribution.php:740

2) Galette\Entity\test\units\Contribution::testNextYearFrom096
Failed asserting that Array &0 [
    0 => '- Membership period overlaps period starting at 2023-03-01',
] is true.

/home/runner/work/galette/galette/tests/Galette/Entity/tests/units/Contribution.php:801

Mis à jour par Johan Cwiklinski il y a environ 2 mois

  • Priorité changé de Normal à Bas

Quite difficult to reproduce/fix once the date is passed, because there are several dates instanciated at "today" in Contribution class; leading to errors when trying to force an old date :/

Actions

Formats disponibles : Atom PDF