ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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();
34 $this->addGlobal_user();
35
36 $this->testObj = new ilObjTestListGUI(1);
37 }
38 public function testConstruct(): void
39 {
40 $this->assertInstanceOf(ilObjTestListGUI::class, $this->testObj);
41 }
42
43 #[\PHPUnit\Framework\Attributes\DataProvider('createDefaultCommandDataProvider')]
44 public function testCreateDefaultCommand(array $IO): void
45 {
46 $this->assertEquals($IO, $this->testObj->createDefaultCommand($IO));
47 }
48
49 public static function createDefaultCommandDataProvider()
50 {
51 return [
52 [[]],
53 [[1]],
54 [[1, 2]],
55 [[1, 2, 3]]
56 ];
57 }
58}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjTestListGUI.
Class ilTestBaseClass.
addGlobal_filesystem()
addGlobal_ilObjDataCache()
addGlobal_ilLoggerFactory()
addGlobal_rbacsystem()
addGlobal_rbacreview()