From 64afa07ff597dda5e8588aee05fa87ad2ff847ff Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 12 Jan 2022 15:14:05 +0100 Subject: [PATCH] Unit tests: Fix themes compilation test --- application/themehandlerservice.class.inc.php | 4 ++-- test/setup/MFCompilerTest.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/themehandlerservice.class.inc.php b/application/themehandlerservice.class.inc.php index 4e29d3b6f..b35605dbd 100644 --- a/application/themehandlerservice.class.inc.php +++ b/application/themehandlerservice.class.inc.php @@ -29,7 +29,7 @@ class ThemeHandlerService { } - public function CompileTheme($sThemeId, $bSetup = false, $sSetupCompilationTimestamp="", $aThemeParameters = null, $aImportsPaths = null, $sWorkingPath = null){ - return ThemeHandler::CompileTheme($sThemeId, $bSetup, $sSetupCompilationTimestamp="", $aThemeParameters, $aImportsPaths, $sWorkingPath); + public function CompileTheme($sThemeId, $bSetup = false, $sSetupCompilationTimestamp = "", $aThemeParameters = null, $aImportsPaths = null, $sWorkingPath = null){ + return ThemeHandler::CompileTheme($sThemeId, $bSetup, $sSetupCompilationTimestamp, $aThemeParameters, $aImportsPaths, $sWorkingPath); } } \ No newline at end of file diff --git a/test/setup/MFCompilerTest.php b/test/setup/MFCompilerTest.php index 77d94b5a0..9118dbb28 100644 --- a/test/setup/MFCompilerTest.php +++ b/test/setup/MFCompilerTest.php @@ -178,6 +178,7 @@ class MFCompilerTest extends ItopTestCase { 'stylesheets' => [ "fullmoon" => '../css/backoffice/main.scss', "environment-banner" => '../css/backoffice/themes/page-banner.scss', + "datamodel-compiled-scss-rules" => 'branding/themes/datamodel-compiled-scss-rules.scss', ], ];