ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
TestScoringByParticipantGUITest Class Reference

Class TestScoringGUITest. More...

+ Inheritance diagram for TestScoringByParticipantGUITest:
+ Collaboration diagram for TestScoringByParticipantGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestAccess ()
 
- 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

TestScoringByParticipantGUI $testObj
 

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

Class TestScoringGUITest.

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 27 of file TestScoringByParticipantGUITest.php.

Member Function Documentation

◆ setUp()

TestScoringByParticipantGUITest::setUp ( )
protected

Definition at line 31 of file TestScoringByParticipantGUITest.php.

References addGlobal_GlobalScreenService(), addGlobal_ilHelp(), addGlobal_ilNavigationHistory(), addGlobal_ilObjDataCache(), addGlobal_ilSetting(), addGlobal_ilTabs(), addGlobal_ilToolbar(), addGlobal_rbacsystem(), and getTestObjMock().

31  : void
32  {
33  parent::setUp();
34 
35  $this->addGlobal_ilTabs();
36  $this->addGlobal_ilObjDataCache();
37  $this->addGlobal_ilHelp();
38  $this->addGlobal_rbacsystem();
39  $this->addGlobal_ilSetting();
40  $this->addGlobal_ilToolbar();
43 
44  $this->testObj = new TestScoringByParticipantGUI($this->getTestObjMock());
45  }
addGlobal_rbacsystem()
addGlobal_ilNavigationHistory()
addGlobal_ilObjDataCache()
addGlobal_GlobalScreenService()
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

TestScoringByParticipantGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 47 of file TestScoringByParticipantGUITest.php.

47  : void
48  {
49  $this->assertInstanceOf(TestScoringByParticipantGUI::class, $this->testObj);
50  }

◆ testTestAccess()

TestScoringByParticipantGUITest::testTestAccess ( )

Definition at line 52 of file TestScoringByParticipantGUITest.php.

52  : void
53  {
54  $mock = $this->createMock(ilTestAccess::class);
55  $this->testObj->setTestAccess($mock);
56  $this->assertEquals($mock, $this->testObj->getTestAccess());
57  }

Field Documentation

◆ $testObj

TestScoringByParticipantGUI TestScoringByParticipantGUITest::$testObj
private

Definition at line 29 of file TestScoringByParticipantGUITest.php.


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