ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
TestScoringByParticipantPassesOverviewTableGUITest Class Reference

Class TestScoringByParticipantPassesOverviewTableGUITest. More...

+ Inheritance diagram for TestScoringByParticipantPassesOverviewTableGUITest:
+ Collaboration diagram for TestScoringByParticipantPassesOverviewTableGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

TestScoringByParticipantPassesOverviewTableGUI $tableGui
 
TestScoringByParticipantGUI $parentObj_mock
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

TestScoringByParticipantPassesOverviewTableGUITest::setUp ( )
protected

Definition at line 33 of file TestScoringByParticipantPassesOverviewTableGUITest.php.

33  : void
34  {
35  parent::setUp();
36 
37  $lng_mock = $this->createMock(ilLanguage::class);
38  $ctrl_mock = $this->createMock(ilCtrl::class);
39  $ctrl_mock->expects($this->any())
40  ->method("getFormAction")
41  ->willReturnCallback(function () {
42  return "testFormAction";
43  });
44 
45  $this->setGlobalVariable("lng", $lng_mock);
46  $this->setGlobalVariable("ilCtrl", $ctrl_mock);
47  $this->setGlobalVariable("tpl", $this->createMock(ilGlobalPageTemplate::class));
48  $this->setGlobalVariable("component.repository", $this->createMock(ilComponentRepository::class));
49  $component_factory = $this->createMock(ilComponentFactory::class);
50  $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
51  $this->setGlobalVariable("component.factory", $component_factory);
52  $this->setGlobalVariable("ilDB", $this->createMock(ilDBInterface::class));
53 
54  $this->parentObj_mock = $this->getMockBuilder(TestScoringByParticipantGUI::class)->disableOriginalConstructor()->onlyMethods(['getObject'])->getMock();
55  $this->parentObj_mock->expects($this->any())->method('getObject')->willReturn($this->getTestObjMock());
56  $this->tableGui = new TestScoringByParticipantPassesOverviewTableGUI($this->parentObj_mock, "");
57  }

◆ test_instantiateObject_shouldReturnInstance()

TestScoringByParticipantPassesOverviewTableGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 59 of file TestScoringByParticipantPassesOverviewTableGUITest.php.

59  : void
60  {
61  $this->assertInstanceOf(TestScoringByParticipantPassesOverviewTableGUI::class, $this->tableGui);
62  }

Field Documentation

◆ $parentObj_mock

TestScoringByParticipantGUI TestScoringByParticipantPassesOverviewTableGUITest::$parentObj_mock
private

◆ $tableGui

TestScoringByParticipantPassesOverviewTableGUI TestScoringByParticipantPassesOverviewTableGUITest::$tableGui
private

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