ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSystemStyleXMLTest.php
Go to the documentation of this file.
1<?php
2
3include_once("./Services/Style/System/classes/Utilities/class.ilSkinStyleXML.php");
4
11{
12
16 protected $style1;
17
18 public function testStyleNameAndId()
19 {
20 $this->style1 = new ilSkinStyleXML("style1", "Style 1");
21 $this->assertEquals("style1", $this->style1->getId());
22 $this->assertEquals("Style 1", $this->style1->getName());
23 }
24
25 public function testStyleProperties()
26 {
27 $this->style1 = new ilSkinStyleXML("style1", "Style 1");
28 $this->style1->setId("id");
29 $this->style1->setName("name");
30 $this->style1->setCssFile("css");
31 $this->style1->setImageDirectory("image");
32 $this->style1->setSoundDirectory("sound");
33
34 $this->assertEquals("id", $this->style1->getId());
35 $this->assertEquals("name", $this->style1->getName());
36 $this->assertEquals("css", $this->style1->getCssFile());
37 $this->assertEquals("image", $this->style1->getImageDirectory());
38 $this->assertEquals("sound", $this->style1->getSoundDirectory());
39 }
40}
An exception for terminatinating execution or to throw for unit testing.