◆ setUp()
ilSystemStyleIconTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 48 of file ilSystemStyleIconTest.php.
References $DIC, ilSystemStyleSkinContainer\generateFromId(), and ilSystemStyleSkinContainer\xCopy().
52 $this->save_dic =
$DIC;
58 mkdir($this->system_style_config->test_skin_temp_path);
62 $this->
style = $this->container->getSkin()->getStyle(
"style1");
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...
static xCopy($src, $dest)
Recursive copy of a folder.
◆ tearDown()
ilSystemStyleIconTest::tearDown |
( |
| ) |
|
|
protected |
◆ testChangeColor()
ilSystemStyleIconTest::testChangeColor |
( |
| ) |
|
Definition at line 115 of file ilSystemStyleIconTest.php.
References $path.
117 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
120 $icon->changeColors([
'505050' =>
'555555']);
127 $expected_color_set->addColor($color1);
128 $expected_color_set->addColor($color2);
129 $expected_color_set->addColor($color3);
130 $expected_color_set->addColor($color4);
132 $this->assertEquals($expected_color_set, $icon->getColorSet());
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
◆ testChangeColorInIconFile()
ilSystemStyleIconTest::testChangeColorInIconFile |
( |
| ) |
|
Definition at line 135 of file ilSystemStyleIconTest.php.
References $path.
137 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
140 $icon->changeColors([
'505050' =>
'555555']);
147 $expected_color_set->addColor($color1);
148 $expected_color_set->addColor($color2);
149 $expected_color_set->addColor($color3);
150 $expected_color_set->addColor($color4);
154 $this->assertEquals($expected_color_set, $icon_new->getColorSet());
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
◆ testConstruct()
ilSystemStyleIconTest::testConstruct |
( |
| ) |
|
◆ testGetColorSet()
ilSystemStyleIconTest::testGetColorSet |
( |
| ) |
|
Definition at line 97 of file ilSystemStyleIconTest.php.
References $path.
99 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
107 $expected_color_set->addColor($color1);
108 $expected_color_set->addColor($color2);
109 $expected_color_set->addColor($color3);
110 $expected_color_set->addColor($color4);
112 $this->assertEquals($expected_color_set, $icon->getColorSet());
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
◆ testGetDirRelToCustomizing()
ilSystemStyleIconTest::testGetDirRelToCustomizing |
( |
| ) |
|
Definition at line 82 of file ilSystemStyleIconTest.php.
References $name, and $path.
84 $path = $this->container->getImagesSkinPath($this->
style->getId()) .
"/" . $this->icon_name;
87 $this->assertEquals($icon->getDirRelToCustomizing(),
"");
90 $rel_path =
"global/skin/unibe50/images";
91 $path =
"./Customizing" . $rel_path .
"/" .
$name;
94 $this->assertEquals($icon->getDirRelToCustomizing(), $rel_path);
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
◆ $container
ilSystemStyleIconTest::$container |
|
protected |
◆ $icon_name
ilSystemStyleIconTest::$icon_name = "test_image_1.svg" |
|
protected |
◆ $icon_type
ilSystemStyleIconTest::$icon_type = "svg" |
|
protected |
◆ $save_dic
ilSystemStyleIconTest::$save_dic = null |
|
protected |
◆ $style
ilSystemStyleIconTest::$style |
|
protected |
◆ $system_style_config
ilSystemStyleIconTest::$system_style_config |
|
protected |
The documentation for this class was generated from the following file: