Project

General

Profile

Actions

Anomalie #1796

open

Tests failure on leap year

Added by Johan Cwiklinski 12 months ago. Updated 12 months ago.

Status:
Nouveau
Priority:
Bas
Category:
Core
Target version:
-
Start date:
03/01/2024
Due date:
% Done:

0%

Estimated time:
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

Actions #1

Updated by Johan Cwiklinski 12 months ago

  • Priority changed from Normal to 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

Also available in: Atom PDF