ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilObjTestListGUITest.php
Go to the documentation of this file.
1 <?php
2 
20 {
22 
23  protected function setUp(): void
24  {
25  parent::setUp();
26 
27  $this->addGlobal_ilAccess();
28  $this->addGlobal_ilSetting();
29  $this->addGlobal_rbacsystem();
30  $this->addGlobal_filesystem();
31  $this->addGlobal_rbacreview();
32  $this->addGlobal_ilObjDataCache();
34 
35  $this->testObj = new ilObjTestListGUI(1);
36  }
37  public function testConstruct(): void
38  {
39  $this->assertInstanceOf(ilObjTestListGUI::class, $this->testObj);
40  }
41 
42  #[\PHPUnit\Framework\Attributes\DataProvider('createDefaultCommandDataProvider')]
43  public function testCreateDefaultCommand(array $IO): void
44  {
45  $this->assertEquals($IO, $this->testObj->createDefaultCommand($IO));
46  }
47 
48  public static function createDefaultCommandDataProvider()
49  {
50  return [
51  [[]],
52  [[1]],
53  [[1, 2]],
54  [[1, 2, 3]]
55  ];
56  }
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addGlobal_filesystem()
addGlobal_rbacsystem()
addGlobal_rbacreview()
Class ilObjTestListGUI.
addGlobal_ilLoggerFactory()
addGlobal_ilObjDataCache()