ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
BarConfigTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 require_once(__DIR__ . "/../../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ . "/../../../Base.php");
23 
25 
30 {
31  public function getDataFactory(): ILIAS\Data\Factory
32  {
33  return new ILIAS\Data\Factory();
34  }
35 
36  public function testWithColor(): 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  }
47 
48  public function testWithWidth(): 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  }
59 }
Class ChatMainBarProvider .
Provides common functionality for UI tests.
Definition: Base.php:310
Test on Bar Configuration implementation.