3 include_once(
"Services/Style/System/classes/Utilities/class.ilSkinStyleXML.php");
4 include_once(
"Services/Style/System/classes/Utilities/class.ilSkinXML.php");
5 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleSkinContainer.php");
6 include_once(
"Services/Style/System/test/fixtures/mocks/ilSystemStyleConfigMock.php");
7 include_once(
"Services/Style/System/test/fixtures/mocks/ilSystemStyleDICMock.php");
9 include_once(
"Services/Style/System/classes/Icons/class.ilSystemStyleIcon.php");
52 $this->save_dic =
$DIC;
58 mkdir($this->system_style_config->test_skin_temp_path);
62 $this->
style = $this->container->getSkin()->getStyle(
"style1");
74 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
78 $this->assertEquals($icon->getPath(),
$path);
84 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
92 $expected_color_set->addColor($color1);
93 $expected_color_set->addColor($color2);
94 $expected_color_set->addColor($color3);
95 $expected_color_set->addColor($color4);
97 $this->assertEquals($expected_color_set, $icon->getColorSet());
102 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
105 $icon->changeColors([
'505050' =>
'555555']);
112 $expected_color_set->addColor($color1);
113 $expected_color_set->addColor($color2);
114 $expected_color_set->addColor($color3);
115 $expected_color_set->addColor($color4);
117 $this->assertEquals($expected_color_set, $icon->getColorSet());
122 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
125 $icon->changeColors([
'505050' =>
'555555']);
132 $expected_color_set->addColor($color1);
133 $expected_color_set->addColor($color2);
134 $expected_color_set->addColor($color3);
135 $expected_color_set->addColor($color4);
139 $this->assertEquals($expected_color_set, $icon_new->getColorSet());
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
static recursiveRemoveDir($dir)
Recursive delete of a folder.
static generateFromId($skin_id, ilSystemStyleMessageStack $message_stack=null, ilSystemStyleConfig $system_styles_conf=null)
Generate the container class by parsing the corresponding XML.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
testChangeColorInIconFile()
static xCopy($src, $dest)
Recursive copy of a folder.