ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilRandomTestROInputGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->addGlobal_ilCtrl();
34  $this->addGlobal_lng();
35 
36  $this->testObj = new ilRandomTestROInputGUI();
37  }
38 
40  {
41  $this->assertInstanceOf(ilRandomTestROInputGUI::class, $this->testObj);
42  }
43 
44  public function testSetValues(): void
45  {
46  $expected = [
47  "test" => "test2",
48  "hello" => "world"
49  ];
50  $this->testObj->setValues($expected);
51  $this->assertEquals($this->testObj->getValues(), $expected);
52  }
53 }
This class represents a random test input property in a property form.
Class ilRandomTestROInputGUITest.
Class ilTestBaseClass.