◆ testChangeVariable()
| ilSystemStyleStyleScssTest::testChangeVariable |
( |
| ) |
|
Definition at line 363 of file ilSystemStyleStyleScssTest.php.
References ILIAS\LTI\ToolProvider\$settings.
366 $variable =
$settings->getVariableByName(
'variable111');
367 $variable->setValue(
'newvalue111');
379 'comment variable 111',
386 'comment variable 112',
393 'comment variable 113',
405 'comment variable 121',
412 'comment variable 122',
419 'comment variable 123',
430 'comment variable 211',
437 'comment variable 212',
444 'comment variable 213',
456 'comment variable 221',
463 'comment variable 222',
470 'comment variable 223',
478 $expected_settings_comment1,
479 $expected_settings_comment2,
480 $expected_settings_comment3,
481 $expected_category11,
484 $expected_variable111,
485 $expected_variable112,
486 $expected_variable113,
488 $expected_category12,
492 $expected_variable121,
493 $expected_variable122,
494 $expected_variable123,
495 $expected_category21,
498 $expected_variable211,
499 $expected_variable212,
500 $expected_variable213,
502 $expected_category22,
506 $expected_variable221,
507 $expected_variable222,
508 $expected_variable223
511 $this->assertEquals($expected_items,
$settings->getItems());
Capsules data of a Scss category in the variables to Scss file.
◆ testConstructAndRead()
| ilSystemStyleStyleScssTest::testConstructAndRead |
( |
| ) |
|
◆ testGetCategory()
| ilSystemStyleStyleScssTest::testGetCategory |
( |
| ) |
|
Definition at line 147 of file ilSystemStyleStyleScssTest.php.
150 $expected_categories = [];
158 $this->assertEquals($expected_categories, $file->getCategories());
Capsules data of a Scss category in the variables to Scss file.
◆ testGetContent()
| ilSystemStyleStyleScssTest::testGetContent |
( |
| ) |
|
◆ testGetItems()
| ilSystemStyleStyleScssTest::testGetItems |
( |
| ) |
|
Definition at line 161 of file ilSystemStyleStyleScssTest.php.
175 'comment variable 211',
182 'comment variable 212',
189 'comment variable 213',
201 'comment variable 221',
208 'comment variable 222',
215 'comment variable 223',
226 'comment variable 111',
233 'comment variable 112',
240 'comment variable 113',
252 'comment variable 121',
259 'comment variable 122',
266 'comment variable 123',
273 $expected_settings_comment1,
274 $expected_settings_comment2,
275 $expected_settings_comment3,
276 $expected_category11,
279 $expected_variable111,
280 $expected_variable112,
281 $expected_variable113,
283 $expected_category12,
287 $expected_variable121,
288 $expected_variable122,
289 $expected_variable123,
290 $expected_category21,
293 $expected_variable211,
294 $expected_variable212,
295 $expected_variable213,
297 $expected_category22,
301 $expected_variable221,
302 $expected_variable222,
303 $expected_variable223
306 $this->assertEquals($expected_items, $file->getItems());
Capsules data of a Scss category in the variables to Scss file.
◆ testGetItemsEdgeCases()
| ilSystemStyleStyleScssTest::testGetItemsEdgeCases |
( |
| ) |
|
Definition at line 566 of file ilSystemStyleStyleScssTest.php.
574 'variableNoCategory1',
576 'comment variable 11',
585 'variableNoValidSection1',
588 'Category 1 no valid section',
592 'variableNoValidSection2',
595 'Category 1 no valid section',
606 'Hard references id',
612 'floor(($regular * 1.6)) * lighten($regular, 20%)',
619 'color.scale($il-success-color, $lightness: 86%)',
620 'Hard references II, see #39792',
622 [
'il-success-color',
'lightness']
630 $expected_items = [$expected_comment1,
632 $expected_variable11,
633 $expected_variable12,
635 $expected_variable21,
636 $expected_variable22,
639 $expected_variable31,
640 $expected_variable32,
641 $expected_variable33,
644 $expected_variable41,
648 $this->assertEquals($expected_items, $file->getItems());
Capsules data of a Scss category in the variables to Scss file.
◆ testGetRefAndCommentAsString()
| ilSystemStyleStyleScssTest::testGetRefAndCommentAsString |
( |
| ) |
|
Definition at line 528 of file ilSystemStyleStyleScssTest.php.
533 'comment variable 111</br>Usage: variable113; variable121; ',
534 $file->getRefAndCommentAsString(
'variable111',
'Usage:')
536 $this->assertEquals(
'comment variable 112', $file->getRefAndCommentAsString(
'variable112',
'Usage:'));
537 $this->assertEquals(
'comment variable 113', $file->getRefAndCommentAsString(
'variable113',
'Usage:'));
539 $this->assertEquals(
'comment variable 121</br>Usage: variable123; ', $file->getRefAndCommentAsString(
'variable121',
'Usage:'));
540 $this->assertEquals(
'comment variable 122', $file->getRefAndCommentAsString(
'variable122',
'Usage:'));
541 $this->assertEquals(
'comment variable 123', $file->getRefAndCommentAsString(
'variable123',
'Usage:'));
◆ testGetVariableByName()
| ilSystemStyleStyleScssTest::testGetVariableByName |
( |
| ) |
|
Definition at line 40 of file ilSystemStyleStyleScssTest.php.
47 'comment variable 111',
54 'comment variable 112',
61 'comment variable 113',
69 'comment variable 121',
76 'comment variable 122',
83 'comment variable 123',
90 'comment variable 211',
97 'comment variable 212',
104 'comment variable 213',
112 'comment variable 221',
119 'comment variable 222',
126 'comment variable 223',
130 $this->assertEquals($expected_variable111, $file->getVariableByName(
'variable111'));
131 $this->assertEquals($expected_variable112, $file->getVariableByName(
'variable112'));
132 $this->assertEquals($expected_variable113, $file->getVariableByName(
'variable113'));
134 $this->assertEquals($expected_variable121, $file->getVariableByName(
'variable121'));
135 $this->assertEquals($expected_variable122, $file->getVariableByName(
'variable122'));
136 $this->assertEquals($expected_variable123, $file->getVariableByName(
'variable123'));
138 $this->assertEquals($expected_variable211, $file->getVariableByName(
'variable211'));
139 $this->assertEquals($expected_variable212, $file->getVariableByName(
'variable212'));
140 $this->assertEquals($expected_variable213, $file->getVariableByName(
'variable213'));
142 $this->assertEquals($expected_variable221, $file->getVariableByName(
'variable221'));
143 $this->assertEquals($expected_variable222, $file->getVariableByName(
'variable222'));
144 $this->assertEquals($expected_variable223, $file->getVariableByName(
'variable223'));
◆ testGetVariableReferences()
| ilSystemStyleStyleScssTest::testGetVariableReferences |
( |
| ) |
|
Definition at line 515 of file ilSystemStyleStyleScssTest.php.
519 $this->assertEquals([
'variable113',
'variable121'], $file->getReferencesToVariable(
'variable111'));
520 $this->assertEquals([], $file->getReferencesToVariable(
'variable112'));
521 $this->assertEquals([], $file->getReferencesToVariable(
'variable113'));
523 $this->assertEquals([
'variable123'], $file->getReferencesToVariable(
'variable121'));
524 $this->assertEquals([], $file->getReferencesToVariable(
'variable122'));
525 $this->assertEquals([], $file->getReferencesToVariable(
'variable123'));
◆ testGetVariableReferencesAsString()
| ilSystemStyleStyleScssTest::testGetVariableReferencesAsString |
( |
| ) |
|
Definition at line 544 of file ilSystemStyleStyleScssTest.php.
548 $this->assertEquals(
'variable113; variable121; ', $file->getReferencesToVariableAsString(
'variable111'));
549 $this->assertEquals(
'', $file->getReferencesToVariableAsString(
'variable112'));
550 $this->assertEquals(
'', $file->getReferencesToVariableAsString(
'variable113'));
552 $this->assertEquals(
'variable123; ', $file->getReferencesToVariableAsString(
'variable121'));
553 $this->assertEquals(
'', $file->getReferencesToVariableAsString(
'variable122'));
554 $this->assertEquals(
'', $file->getReferencesToVariableAsString(
'variable123'));
◆ testGetVariablesForDelosOverride()
| ilSystemStyleStyleScssTest::testGetVariablesForDelosOverride |
( |
| ) |
|
Definition at line 316 of file ilSystemStyleStyleScssTest.php.
References ILIAS\LTI\ToolProvider\$settings.
319 $expected_content =
'$variable111: globals.$variable111, 320 $variable112: globals.$variable112, 321 $variable113: globals.$variable113, 322 $variable121: globals.$variable121, 323 $variable122: globals.$variable122, 324 $variable123: globals.$variable123, 325 $variable211: globals.$variable211, 326 $variable212: globals.$variable212, 327 $variable213: globals.$variable213, 328 $variable221: globals.$variable221, 329 $variable222: globals.$variable222, 330 $variable223: globals.$variable223, 332 $this->assertEquals($expected_content,
$settings->getVariablesForDelosOverride());
◆ testReadCorrectTypes()
| ilSystemStyleStyleScssTest::testReadCorrectTypes |
( |
| ) |
|
Definition at line 31 of file ilSystemStyleStyleScssTest.php.
35 $this->assertCount(5, $file->getCategories());
36 $this->assertCount(12, $file->getVariables());
37 $this->assertCount(32, $file->getItems());
◆ testReadCorrectTypesEdgeCases()
| ilSystemStyleStyleScssTest::testReadCorrectTypesEdgeCases |
( |
| ) |
|
Definition at line 557 of file ilSystemStyleStyleScssTest.php.
561 $this->assertCount(3, $file->getCategories());
562 $this->assertCount(9, $file->getVariables());
563 $this->assertCount(16, $file->getItems());
◆ testReadWriteDouble()
| ilSystemStyleStyleScssTest::testReadWriteDouble |
( |
| ) |
|
◆ testReadWriteDoubleRealFolderSCSS()
| ilSystemStyleStyleScssTest::testReadWriteDoubleRealFolderSCSS |
( |
| ) |
|
The documentation for this class was generated from the following file: