Class ilTestManScoringParticipantsTableGUITest.
More...
◆ setUp()
| ilTestManScoringParticipantsTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestManScoringParticipantsTableGUITest.php.
References ilTestBaseTestCase\setGlobalVariable().
34 $lng_mock = $this->createMock(ilLanguage::class);
35 $lng_mock->expects($this->any())
37 ->willReturnCallback(
function () {
38 return "testTranslation";
41 $ctrl_mock = $this->createMock(ilCtrl::class);
42 $ctrl_mock->expects($this->any())
43 ->method(
"getFormAction")
44 ->willReturnCallback(
function () {
45 return "testFormAction";
51 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
52 $component_factory = $this->createMock(ilComponentFactory::class);
53 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
57 $this->parentObj_mock = $this->getMockBuilder(ilTestScoringGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
58 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
| ilTestManScoringParticipantsTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: