ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestVerificationTableGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
30 
31  protected function setUp(): void
32  {
33  global $DIC;
34  parent::setUp();
35 
36  $this->addGlobal_ilDB();
37  $this->addGlobal_ilUser();
38  $this->addGlobal_lng();
39  $this->addGlobal_tpl();
42 
43  $ctrl_mock = $this->createMock(ilCtrl::class);
44  $ctrl_mock
45  ->method("getFormAction")
46  ->willReturnCallback(function () {
47  return "testFormAction";
48  });
49  $this->setGlobalVariable("ilCtrl", $ctrl_mock);
50 
51  $test_gui = $this->getMockBuilder(ilObjTestVerificationGUI::class)->disableOriginalConstructor()->getMock();
52  $this->tableGui = new ilTestVerificationTableGUI($test_gui, '', $DIC['ilDB'], $DIC['ilUser'], new NullLogger());
53  }
54 
56  {
57  $this->assertInstanceOf(ilTestVerificationTableGUI::class, $this->tableGui);
58  }
59 }
global $DIC
Definition: feed.php:28
Class ilTestVerificationTableGUITest.
setGlobalVariable(string $name, $value)
Class ilTestBaseClass.
List all completed tests for current user.