ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 32 of file ilTestToplistGUITest.php.

32 : void
33 {
34 global $DIC;
35 parent::setUp();
36
37 $this->testObj = new ilTestToplistGUI(
38 $this->getTestObjMock(),
39 $this->createMock(TestTopListRepository::class),
40 $DIC['ilCtrl'],
41 $DIC['tpl'],
42 $DIC['lng'],
43 $DIC['ilUser'],
44 $DIC['ui.factory'],
45 $DIC['ui.renderer'],
46 $this->createMock(Factory::class),
47 $DIC['http']
48 );
49 }
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 51 of file ilTestToplistGUITest.php.

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

Field Documentation

◆ $testObj

ilTestToplistGUI ilTestToplistGUITest::$testObj
private

Definition at line 30 of file ilTestToplistGUITest.php.


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