ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

Referenced by testWithColor().

32  {
33  return new ILIAS\Data\Factory();
34  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ testWithColor()

BarConfigTest::testWithColor ( )

Definition at line 36 of file BarConfigTest.php.

References getDataFactory(), and null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ testWithWidth()

BarConfigTest::testWithWidth ( )

Definition at line 48 of file BarConfigTest.php.

References null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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