ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BarConfigTest Class Reference

Test on Bar Configuration implementation. More...

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

Public Member Functions

 getDataFactory ()
 
 testWithColor ()
 
 testWithWidth ()
 

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.

32 {
33 return new ILIAS\Data\Factory();
34 }
Builds data types.
Definition: Factory.php:36

Referenced by testWithColor().

+ Here is the caller graph for this function:

◆ testWithColor()

BarConfigTest::testWithColor ( )

Definition at line 36 of file BarConfigTest.php.

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 }

References getDataFactory().

+ Here is the call graph for this function:

◆ testWithWidth()

BarConfigTest::testWithWidth ( )

Definition at line 48 of file BarConfigTest.php.

48 : void
49 {
50 $bc = new BarConfig();
51 $width = 0.5;
52 $bc1 = $bc->withRelativeWidth($width);
53
54 $this->assertEquals(null, $bc->getRelativeWidth());
55 $this->assertEquals($width, $bc1->getRelativeWidth());
56 }

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