Fix with php-cs-fixer

This commit is contained in:
Laurent Destailleur
2023-12-04 11:22:28 +01:00
parent 881e32f03a
commit de7d3c2bf8
37 changed files with 190 additions and 109 deletions

View File

@@ -517,12 +517,16 @@ class DateLibTest extends PHPUnit\Framework\TestCase
{
global $conf;
$day=3; $month=2; $year=2015;
$day=3;
$month=2;
$year=2015;
$conf->global->MAIN_START_WEEK = 1; // start on monday
$prev = dol_get_first_day_week($day, $month, $year);
$this->assertEquals(2, (int) $prev['first_day']); // monday for month 2, year 2014 is the 2
$day=3; $month=2; $year=2015;
$day=3;
$month=2;
$year=2015;
$conf->global->MAIN_START_WEEK = 0; // start on sunday
$prev = dol_get_first_day_week($day, $month, $year);
$this->assertEquals(1, (int) $prev['first_day']); // sunday for month 2, year 2015 is the 1st