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