ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSkinStyleTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once('vendor/composer/vendor/autoload.php');
22
23use PHPUnit\Framework\TestCase;
24
25class ilSkinStyleTest extends TestCase
26{
28
29 public function testStyleNameAndId(): void
30 {
31 $this->style1 = new ilSkinStyle('style1', 'Style 1');
32 $this->assertEquals('style1', $this->style1->getId());
33 $this->assertEquals('Style 1', $this->style1->getName());
34 }
35
36 public function testStyleProperties(): void
37 {
38 $this->style1 = new ilSkinStyle('style1', 'Style 1');
39 $this->style1->setId('id');
40 $this->style1->setName('name');
41 $this->style1->setCssFile('css');
42 $this->style1->setImageDirectory('image');
43 $this->style1->setSoundDirectory('sound');
44
45 $this->assertEquals('id', $this->style1->getId());
46 $this->assertEquals('name', $this->style1->getName());
47 $this->assertEquals('css', $this->style1->getCssFile());
48 $this->assertEquals('image', $this->style1->getImageDirectory());
49 $this->assertEquals('sound', $this->style1->getSoundDirectory());
50 }
51}
ilSkinStyle $style1