19 declare(strict_types=1);
30 return 'http://www.ilias.de';
42 protected function setUp(): void
46 $this->testObj = $this->getNewTestGUI();
51 $table_query = $this->getMockBuilder(QuestionsTableQueryMock::class)->getMock();
60 return $this->mock_table_query;
67 $this->assertInstanceOf(ilObjTestGUI::class, $this->testObj);
72 $testAccess_mock = $this->createMock(ilTestAccess::class);
74 $this->testObj->setTestAccess($testAccess_mock);
75 $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
80 $ctrl_mock = $this->createMock(ilCtrl::class);
82 $testObj = $this->getNewTestGUI();
84 ->expects($this->once())
85 ->method(
'redirectByClass')
86 ->with([ilRepositoryGUI::class, ilObjTestGUI::class, ilInfoScreenGUI::class]);
93 $ctrl_mock = $this->createMock(ilCtrl::class);
95 $testObj = $this->getNewTestGUI();
97 ->expects($this->once())
cancelCreateQuestionObject()
test_instantiateObject_shouldReturnInstance()
testCancelCreateQuestionObject()
__construct(Container $dic, ilPlugin $plugin)
setGlobalVariable(string $name, mixed $value)