Class TestScoringByParticipantTableGUITest.
More...
◆ setUp()
TestScoringByParticipantTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file TestScoringByParticipantTableGUITest.php.
References getTestObjMock(), and setGlobalVariable().
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 $access_mock = $this->createMock(ilTestAccess::class);
52 $access_mock->expects($this->exactly(1))
53 ->method(
"checkScoreParticipantsAccess")
59 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
60 $component_factory = $this->createMock(ilComponentFactory::class);
61 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
65 $this->parentObj_mock = $this->getMockBuilder(TestScoringByParticipantGUI::class)
66 ->disableOriginalConstructor()
67 ->onlyMethods([
'getObject',
'getTestAccess'])
69 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->
getTestObjMock());
70 $this->parentObj_mock->expects($this->any())->method(
'getTestAccess')->willReturn($access_mock);
setGlobalVariable(string $name, mixed $value)
◆ test_instantiateObject_shouldReturnInstance()
TestScoringByParticipantTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: