ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSystemStyleSkinStyleLessCategoryTest Class Reference
+ Inheritance diagram for ilSystemStyleSkinStyleLessCategoryTest:
+ Collaboration diagram for ilSystemStyleSkinStyleLessCategoryTest:

Public Member Functions

 testConstruct ()
 
 testSetters ()
 
 testToString ()
 

Detailed Description

Member Function Documentation

◆ testConstruct()

ilSystemStyleSkinStyleLessCategoryTest::testConstruct ( )

Definition at line 12 of file ilSystemStyleSkinStyleLessCategoryTest.php.

12 {
13 $category = new ilSystemStyleLessCategory("name", "comment");
14 $this->assertEquals("name", $category->getName());
15 $this->assertEquals("comment", $category->getComment());
16 }
Capsules data of a less category in the variables to less file.

◆ testSetters()

ilSystemStyleSkinStyleLessCategoryTest::testSetters ( )

Definition at line 18 of file ilSystemStyleSkinStyleLessCategoryTest.php.

18 {
19 $category = new ilSystemStyleLessCategory("name", "comment");
20
21 $category->setName("newName");
22 $category->setComment("newComment");
23
24 $this->assertEquals("newName", $category->getName());
25 $this->assertEquals("newComment", $category->getComment());
26 }

◆ testToString()

ilSystemStyleSkinStyleLessCategoryTest::testToString ( )

Definition at line 28 of file ilSystemStyleSkinStyleLessCategoryTest.php.

28 {
29 $category = new ilSystemStyleLessCategory("name", "comment");
30
31 $this->assertEquals("//== name\n//\n//## comment\n",(string)$category);
32 }

The documentation for this class was generated from the following file: