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

Public Member Functions

 testConstruct ()
 
 testSetters ()
 
 testNastyHack ()
 
 testToString ()
 

Detailed Description

Member Function Documentation

◆ testConstruct()

ilSkinStyleLessVariableTest::testConstruct ( )

Definition at line 12 of file ilSkinStyleLessVariableTest.php.

12  {
13  $variable = new ilSystemStyleLessVariable("name", "value", "comment","category_name", ["references_id"]);
14  $this->assertEquals("name", $variable->getName());
15  $this->assertEquals("value", $variable->getValue());
16  $this->assertEquals("comment", $variable->getComment());
17  $this->assertEquals("category_name", $variable->getCategoryName());
18  $this->assertEquals(["references_id"], $variable->getReferences());
19  }

◆ testNastyHack()

ilSkinStyleLessVariableTest::testNastyHack ( )

Definition at line 37 of file ilSkinStyleLessVariableTest.php.

37  {
38  $variable = new ilSystemStyleLessVariable("name", "value", "comment","category_name", ["references_id"]);
39 
40  $variable->setValue("\"../../Services/UICore/lib/bootstrap-3.2.0/fonts/\"");
41  $this->assertEquals("\"../../../../Services/UICore/lib/bootstrap-3.2.0/fonts/\"", $variable->getValue());
42  }

◆ testSetters()

ilSkinStyleLessVariableTest::testSetters ( )

Definition at line 21 of file ilSkinStyleLessVariableTest.php.

21  {
22  $variable = new ilSystemStyleLessVariable("name", "value", "comment","category_name", ["references_id"]);
23 
24  $variable->setName("newName");
25  $variable->setValue("newValue");
26  $variable->setComment("newComment");
27  $variable->setCategoryName("new_category_name");
28  $variable->setReferences(["new_references_id"]);
29 
30  $this->assertEquals("newName", $variable->getName());
31  $this->assertEquals("newValue", $variable->getValue());
32  $this->assertEquals("newComment", $variable->getComment());
33  $this->assertEquals("new_category_name", $variable->getCategoryName());
34  $this->assertEquals(["new_references_id"], $variable->getReferences());
35  }

◆ testToString()

ilSkinStyleLessVariableTest::testToString ( )

Definition at line 44 of file ilSkinStyleLessVariableTest.php.

44  {
45  $variable = new ilSystemStyleLessVariable("name", "value", "comment","category_name", ["references_id"]);
46  $this->assertEquals("//** comment\n@name:\t\tvalue;\n",(string)$variable);
47  }

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