Class TestScoringByParticipantTableGUITest.
More...
◆ setUp()
| TestScoringByParticipantTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file TestScoringByParticipantTableGUITest.php.
37 $lng_mock = $this->createMock(ilLanguage::class);
38 $lng_mock->expects($this->any())
40 ->willReturnCallback(
function () {
41 return "testTranslation";
44 $ctrl_mock = $this->createMock(ilCtrl::class);
45 $ctrl_mock->expects($this->any())
46 ->method(
"getFormAction")
47 ->willReturnCallback(
function () {
48 return "testFormAction";
51 $this->setGlobalVariable(
"lng", $lng_mock);
52 $this->setGlobalVariable(
"ilCtrl", $ctrl_mock);
53 $this->setGlobalVariable(
"tpl", $this->createMock(ilGlobalPageTemplate::class));
54 $this->setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
55 $component_factory = $this->createMock(ilComponentFactory::class);
56 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
57 $this->setGlobalVariable(
"component.factory", $component_factory);
58 $this->setGlobalVariable(
"ilDB", $this->createMock(ilDBInterface::class));
60 $this->parentObj_mock = $this->getMockBuilder(TestScoringByParticipantGUI::class)->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
61 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->getTestObjMock());
◆ test_instantiateObject_shouldReturnInstance()
| TestScoringByParticipantTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: