ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
BarConfigTest Class Reference

Test on Bar Configuration implementation. More...

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

Public Member Functions

 test_with_color ()
 
 test_with_width ()
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getRefinery ()
 
 getImagePathResolver ()
 
 getDataFactory ()
 
 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

◆ test_with_color()

BarConfigTest::test_with_color ( )

Definition at line 31 of file BarConfigTest.php.

References ILIAS_UI_TestBase\getDataFactory().

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

◆ test_with_width()

BarConfigTest::test_with_width ( )

Definition at line 43 of file BarConfigTest.php.

References ILIAS_UI_TestBase\getDataFactory().

43  : void
44  {
45  $df = $this->getDataFactory();
46 
47  $bc = new BarConfig();
48  $width = 0.5;
49  $bc1 = $bc->withRelativeWidth($width);
50 
51  $this->assertEquals(null, $bc->getRelativeWidth());
52  $this->assertEquals($width, $bc1->getRelativeWidth());
53  }
+ Here is the call graph for this function:

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