ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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  parent::setUp();
34 
35  $this->addGlobal_ilUser();
36 
37  $ctrl_mock = $this->createMock(ilCtrl::class);
38  $ctrl_mock
39  ->method("getFormAction")
40  ->willReturnCallback(function () {
41  return "testFormAction";
42  });
43  $this->setGlobalVariable("ilCtrl", $ctrl_mock);
44 
45  $test_gui = $this->getMockBuilder(ilObjTestVerificationGUI::class)->disableOriginalConstructor()->getMock();
46  $this->tableGui = new ilTestVerificationTableGUI(
47  $test_gui,
48  '',
49  $this->createMock(ilDBInterface::class),
50  $this->createMock(ilObjUser::class),
51  $this->createMock(\ILIAS\Test\Logging\TestLogger::class)
52  );
53  }
54 
56  {
57  $this->assertInstanceOf(ilTestVerificationTableGUI::class, $this->tableGui);
58  }
59 }
Interface Observer Contains several chained tasks and infos about them.
Class ilTestVerificationTableGUITest.
List all completed tests for current user.