Skip to content

Commit

Permalink
Update GLPI_YEAR (#16334)
Browse files Browse the repository at this point in the history
* Update GLPI_YEAR

* Add unit test
  • Loading branch information
AdrienClairembault authored Jan 9, 2024
1 parent 83878fd commit a9ac126
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/define.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

define('GLPI_MIN_PHP', '7.4.0'); // Must also be changed in top of index.php
define('GLPI_MAX_PHP', '8.4.0'); // (Exclusive) Must also be changed in top of index.php
define('GLPI_YEAR', '2023');
define('GLPI_YEAR', '2024');

//Define a global recipient address for email notifications
//define('GLPI_FORCE_MAIL', 'me@localhost');
Expand Down
10 changes: 10 additions & 0 deletions tests/units/GLPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,14 @@ public function testMissingLanguages()
"Locales files present in directory are missing from configuration:\n" . print_r($cfg_missing, true)
);
}

/**
* Verify the value of the GLPI_YEAR const
*
* @return void
*/
public function test_GlpiYear(): void
{
$this->string(GLPI_YEAR)->isEqualTo(date('Y'));
}
}

0 comments on commit a9ac126

Please sign in to comment.