Skip to content

Commit

Permalink
Fix illustration manager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored Dec 2, 2024
1 parent 63becbc commit 5390980
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions phpunit/functional/Glpi/UI/IllustrationManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,9 @@ public function testIllustrationsUseThemeColors(
if (!str_contains($rendered_icon, 'var(--tblr-primary)')) {
$errors[] = "The '$filename' illustration is missing the primary color.";
}
if (!str_contains($rendered_icon, 'var(--tblr-primary)')) {
if (!str_contains($rendered_icon, 'var(--glpi-mainmenu-bg)')) {
$errors[] = "The '$filename' illustration is missing the main menu color.";
}
if (!str_contains($rendered_icon, 'var(--tblr-primary)')) {
$errors[] = "The '$filename' illustration is missing the header color.";
}

if (count($errors)) {
$this->fail(implode('' . PHP_EOL, $errors));
Expand Down

0 comments on commit 5390980

Please sign in to comment.