3 include_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessVariable.php");
17 $this->assertEquals(
"name", $variable->getName());
18 $this->assertEquals(
"value", $variable->getValue());
19 $this->assertEquals(
"comment", $variable->getComment());
20 $this->assertEquals(
"category_name", $variable->getCategoryName());
21 $this->assertEquals([
"references_id"], $variable->getReferences());
28 $variable->setName(
"newName");
29 $variable->setValue(
"newValue");
30 $variable->setComment(
"newComment");
31 $variable->setCategoryName(
"new_category_name");
32 $variable->setReferences([
"new_references_id"]);
34 $this->assertEquals(
"newName", $variable->getName());
35 $this->assertEquals(
"newValue", $variable->getValue());
36 $this->assertEquals(
"newComment", $variable->getComment());
37 $this->assertEquals(
"new_category_name", $variable->getCategoryName());
38 $this->assertEquals([
"new_references_id"], $variable->getReferences());
45 $variable->setValue(
"\"../../node_modules/bootstrap/fonts/\"");
46 $this->assertEquals(
"\"../../../../node_modules/bootstrap/fonts/\"", $variable->getValue());
53 $variable->setValue(
"\"somePath\"");
54 $this->assertEquals(
"\"somePath\"", $variable->getValue());
56 $variable->setValue(
"somePath");
57 $this->assertEquals(
"\"somePath\"", $variable->getValue());
60 $variable->setValue(
"\"somePath");
61 $this->assertEquals(
"\"somePath\"", $variable->getValue());
64 $variable->setValue(
"somePath\"");
65 $this->assertEquals(
"\"somePath\"", $variable->getValue());
71 $this->assertEquals(
"//** comment\n@name:\t\tvalue;\n", (
string) $variable);
testIconFontPathQuotation()