ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestVerificationTableGUITest.php
Go to the documentation of this file.
1<?php
2
19declare(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}
Class ilTestBaseClass.
Class ilTestVerificationTableGUITest.
List all completed tests for current user.
setGlobalVariable(string $name, mixed $value)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.