ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

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

◆ testSetters()

ilSystemStyleSkinStyleLessCategoryTest::testSetters ( )

Definition at line 19 of file ilSystemStyleSkinStyleLessCategoryTest.php.

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  }
Capsules data of a less category in the variables to less file.

◆ testToString()

ilSystemStyleSkinStyleLessCategoryTest::testToString ( )

Definition at line 30 of file ilSystemStyleSkinStyleLessCategoryTest.php.

31  {
32  $category = new ilSystemStyleLessCategory("name", "comment");
33 
34  $this->assertEquals("//== name\n//\n//## comment\n", (string) $category);
35  }
Capsules data of a less category in the variables to less file.

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