ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ilSystemStyleSkinStyleLessCategoryTest.php
Go to the documentation of this file.
1
<?
php
2
3
include_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessCategory.php"
);
4
10
class
ilSystemStyleSkinStyleLessCategoryTest
extends
PHPUnit_Framework_TestCase
11
{
12
public
function
testConstruct
()
13
{
14
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
15
$this->assertEquals(
"name"
, $category->getName());
16
$this->assertEquals(
"comment"
, $category->getComment());
17
}
18
19
public
function
testSetters
()
20
{
21
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
22
23
$category->setName(
"newName"
);
24
$category->setComment(
"newComment"
);
25
26
$this->assertEquals(
"newName"
, $category->getName());
27
$this->assertEquals(
"newComment"
, $category->getComment());
28
}
29
30
public
function
testToString
()
31
{
32
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
33
34
$this->assertEquals(
"//== name\n//\n//## comment\n"
, (
string
) $category);
35
}
36
}
ilSystemStyleLessCategory
Capsules data of a less category in the variables to less file.
Definition:
class.ilSystemStyleLessCategory.php:16
PHPUnit_Framework_TestCase
ilSystemStyleSkinStyleLessCategoryTest\testToString
testToString()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:30
ilSystemStyleSkinStyleLessCategoryTest\testConstruct
testConstruct()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:12
ilSystemStyleSkinStyleLessCategoryTest
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:10
ilSystemStyleSkinStyleLessCategoryTest\testSetters
testSetters()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:19
php
Services
Style
System
test
ilSystemStyleSkinStyleLessCategoryTest.php
Generated on Thu Jan 16 2025 19:02:31 for ILIAS by
1.8.13 (using
Doxyfile
)