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