ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 14 of file ilSystemStyleSkinStyleLessCategoryTest.php.

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

◆ testSetters()

ilSystemStyleSkinStyleLessCategoryTest::testSetters ( )

Definition at line 21 of file ilSystemStyleSkinStyleLessCategoryTest.php.

22  {
23  $category = new ilSystemStyleLessCategory("name", "comment");
24 
25  $category->setName("newName");
26  $category->setComment("newComment");
27 
28  $this->assertEquals("newName", $category->getName());
29  $this->assertEquals("newComment", $category->getComment());
30  }
Capsules data of a less category in the variables to less file.

◆ testToString()

ilSystemStyleSkinStyleLessCategoryTest::testToString ( )

Definition at line 32 of file ilSystemStyleSkinStyleLessCategoryTest.php.

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

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