Class ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest.
More...
◆ setUp()
| ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest.php.
References $DIC, ilTestBaseTestCase\addGlobal_ilAccess(), ilTestBaseTestCase\addGlobal_ilComponentRepository(), ilTestBaseTestCase\addGlobal_tpl(), and ilTestBaseTestCase\setGlobalVariable().
39 $lng_mock = $this->createMock(ilLanguage::class);
40 $lng_mock->expects($this->any())
42 ->willReturnCallback(
function () {
43 return "testTranslation";
47 $ctrl_mock = $this->createMock(ilCtrl::class);
48 $ctrl_mock->expects($this->any())
49 ->method(
"getFormAction")
50 ->willReturnCallback(
function () {
51 return "testFormAction";
55 $component_factory = $this->createMock(ilComponentFactory::class);
56 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
59 $objTest_mock = $this->createMock(ilObjTest::class);
60 $objTest_mock->expects($this->any())
61 ->method(
"getTestQuestions")
62 ->willReturnCallback(
function () {
65 $objTest_mock->expects($this->any())
66 ->method(
"getPotentialRandomTestQuestions")
67 ->willReturnCallback(
function () {
71 $this->parentObj_mock = $this->getMockBuilder(ilTestScoringByQuestionsGUI::class)
72 ->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
73 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($objTest_mock);
ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI
addGlobal_ilComponentRepository()
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
| ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: