ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilTestToplistGUITest Class Reference

Class ilTestToplistGUITest. More...

+ Inheritance diagram for ilTestToplistGUITest:
+ Collaboration diagram for ilTestToplistGUITest:

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

ilTestToplistGUI $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

Member Function Documentation

◆ setUp()

ilTestToplistGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 33 of file ilTestToplistGUITest.php.

33 : void
34 {
35 global $DIC;
36 parent::setUp();
37
38 $this->testObj = new ilTestToplistGUI(
39 $this->getTestObjMock(),
40 $this->createMock(TestTopListRepository::class),
41 $DIC['ilCtrl'],
42 $DIC['tpl'],
43 $DIC['lng'],
44 $DIC['ilUser'],
45 $DIC['ui.factory'],
46 $DIC['ui.renderer'],
47 $this->createMock(Factory::class),
48 $DIC['http'],
49 $this->createMock(ParticipantRepository::class)
50 );
51 }
global $DIC
Definition: shib_login.php:26

References $DIC, and getTestObjMock().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestToplistGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 53 of file ilTestToplistGUITest.php.

53 : void
54 {
55 $this->assertInstanceOf(ilTestToplistGUI::class, $this->testObj);
56 }

Field Documentation

◆ $testObj

ilTestToplistGUI ilTestToplistGUITest::$testObj
private

Definition at line 31 of file ilTestToplistGUITest.php.


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