19 declare(strict_types=1);
21 require_once(
'libs/composer/vendor/autoload.php');
30 $path = $this->container->getImagesSkinPath($this->style->getId()) .
'/' . $this->icon_name;
34 $this->assertEquals($icon->getPath(),
$path);
40 $path = $this->container->getImagesSkinPath($this->style->getId()) .
'/' . $this->icon_name;
43 $this->assertEquals(
'', $icon->getDirRelToCustomizing());
46 $rel_path =
'global/skin/unibe50/images';
47 $path =
'./Customizing' . $rel_path .
'/' .
$name;
50 $this->assertEquals($rel_path, $icon->getDirRelToCustomizing());
55 $path = $this->container->getImagesSkinPath($this->style->getId()) .
'/' . $this->icon_name;
63 $expected_color_set->addColor($color1);
64 $expected_color_set->addColor($color2);
65 $expected_color_set->addColor($color3);
66 $expected_color_set->addColor($color4);
68 $this->assertEquals($expected_color_set, $icon->getColorSet());
73 $path = $this->container->getImagesSkinPath($this->style->getId()) .
'/' . $this->icon_name;
76 $icon->changeColors([
'505050' =>
'555555']);
83 $expected_color_set->addColor($color1);
84 $expected_color_set->addColor($color2);
85 $expected_color_set->addColor($color3);
86 $expected_color_set->addColor($color4);
88 $this->assertEquals($expected_color_set, $icon->getColorSet());
93 $path = $this->container->getImagesSkinPath($this->style->getId()) .
'/' . $this->icon_name;
96 $icon->changeColors([
'505050' =>
'555555']);
103 $expected_color_set->addColor($color1);
104 $expected_color_set->addColor($color2);
105 $expected_color_set->addColor($color3);
106 $expected_color_set->addColor($color4);
110 $this->assertEquals($expected_color_set, $icon_new->getColorSet());
testGetDirRelToCustomizing()
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. ...
testChangeColorInIconFile()