ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest Class Reference

Class ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest. More...

+ Inheritance diagram for ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest:
+ Collaboration diagram for ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI $tableGui
 
ilTestScoringByQuestionsGUI $parentObj_mock
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ 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().

30  : void
31  {
32  global $DIC;
33  parent::setUp();
34 
35  $this->addGlobal_tpl();
37  $this->addGlobal_ilAccess();
38 
39  $lng_mock = $this->createMock(ilLanguage::class);
40  $lng_mock->expects($this->any())
41  ->method("txt")
42  ->willReturnCallback(function () {
43  return "testTranslation";
44  });
45  $this->setGlobalVariable("lng", $lng_mock);
46 
47  $ctrl_mock = $this->createMock(ilCtrl::class);
48  $ctrl_mock->expects($this->any())
49  ->method("getFormAction")
50  ->willReturnCallback(function () {
51  return "testFormAction";
52  });
53  $this->setGlobalVariable("ilCtrl", $ctrl_mock);
54 
55  $component_factory = $this->createMock(ilComponentFactory::class);
56  $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
57  $this->setGlobalVariable("component.factory", $component_factory);
58 
59  $objTest_mock = $this->createMock(ilObjTest::class);
60  $objTest_mock->expects($this->any())
61  ->method("getTestQuestions")
62  ->willReturnCallback(function () {
63  return [];
64  });
65  $objTest_mock->expects($this->any())
66  ->method("getPotentialRandomTestQuestions")
67  ->willReturnCallback(function () {
68  return [];
69  });
70 
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);
74 
75  $this->tableGui = new ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI($this->parentObj_mock, $DIC['ilAccess']);
76  }
global $DIC
Definition: feed.php:28
setGlobalVariable(string $name, $value)
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 78 of file ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest.php.

78  : void
79  {
80  $this->assertInstanceOf(ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI::class, $this->tableGui);
81  }

Field Documentation

◆ $parentObj_mock

ilTestScoringByQuestionsGUI ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest::$parentObj_mock
private

◆ $tableGui

ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest::$tableGui
private

The documentation for this class was generated from the following file: