19 declare(strict_types=1);
35 protected function setUp(): void
39 $this->addGlobal_uiFactory();
40 $this->addGlobal_refinery();
41 $this->addGlobal_http();
42 $this->addGlobal_lng();
44 $obj_test = $this->getMockBuilder(\ilObjTest::class)
45 ->disableOriginalConstructor()
49 $actions = $this->getMockBuilder(QuestionsTableActions::class)
50 ->disableOriginalConstructor()
52 $actions->expects($this->any())
53 ->method(
'getQuestionTargetLinkBuilder')
54 ->willReturn(fn(
int $q):
string =>
'');
56 $questionrepository = $this->getMockBuilder(QuestionsRepository::class)
57 ->disableOriginalConstructor()
59 $questionrepository->expects($this->any())
60 ->method(
'getQuestionPropertiesWithAggregatedResultsForTest')
63 new \
ILIAS\
Test\Questions\Properties\Properties(
66 $this->createMock(\ilComponentFactory::class),
89 $DIC[
'http']->request(),
100 $this->assertInstanceOf(QuestionsTable::class, $this->table_gui);
105 $this->assertInstanceOf(
Table\Ordering::class, $this->table_gui->getTableComponent());
Interface Observer Contains several chained tasks and infos about them.
Class QuestionsTableTest.
QuestionsTable $table_gui
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testQuestionsTableGUIwillReturnProperTypes()