ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
BarConfigTest Class Reference

Test on Bar Configuration implementation. More...

+ Inheritance diagram for BarConfigTest:
+ Collaboration diagram for BarConfigTest:

Public Member Functions

 getDataFactory ()
 
 testWithColor ()
 
 testWithWidth ()
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getRefinery ()
 
 getImagePathResolver ()
 
 getDataFactory ()
 
 getHelpTextRetriever ()
 
 getUploadLimitResolver ()
 
 getDefaultRenderer (JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
 getDecoratedRenderer (Renderer $default)
 
 normalizeHTML (string $html)
 
 assertHTMLEquals (string $expected_html_as_string, string $html_as_string)
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS_UI_TestBase
 brutallyTrimHTML (string $html)
 A more radical version of normalizeHTML. More...
 
 brutallyTrimSignals (string $html)
 A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output. More...
 

Detailed Description

Test on Bar Configuration implementation.

Definition at line 29 of file BarConfigTest.php.

Member Function Documentation

◆ getDataFactory()

BarConfigTest::getDataFactory ( )

Definition at line 31 of file BarConfigTest.php.

Referenced by testWithColor(), and testWithWidth().

32  {
33  return new ILIAS\Data\Factory();
34  }
+ Here is the caller graph for this function:

◆ testWithColor()

BarConfigTest::testWithColor ( )

Definition at line 36 of file BarConfigTest.php.

References getDataFactory().

36  : void
37  {
38  $df = $this->getDataFactory();
39 
40  $bc = new BarConfig();
41  $color = $df->color("#000000");
42  $bc1 = $bc->withColor($color);
43 
44  $this->assertEquals(null, $bc->getColor());
45  $this->assertEquals($color, $bc1->getColor());
46  }
+ Here is the call graph for this function:

◆ testWithWidth()

BarConfigTest::testWithWidth ( )

Definition at line 48 of file BarConfigTest.php.

References getDataFactory().

48  : void
49  {
50  $df = $this->getDataFactory();
51 
52  $bc = new BarConfig();
53  $width = 0.5;
54  $bc1 = $bc->withRelativeWidth($width);
55 
56  $this->assertEquals(null, $bc->getRelativeWidth());
57  $this->assertEquals($width, $bc1->getRelativeWidth());
58  }
+ Here is the call graph for this function:

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