ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
TestScoringByParticipantPassesOverviewTableGUITest Class Reference

Class TestScoringByParticipantPassesOverviewTableGUITest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

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=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

TestScoringByParticipantPassesOverviewTableGUITest::setUp ( )
protected

Definition at line 33 of file TestScoringByParticipantPassesOverviewTableGUITest.php.

References getTestObjMock(), and setGlobalVariable().

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  }
setGlobalVariable(string $name, mixed $value)
+ Here is the call graph for this function:

◆ 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: