ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestVerificationTableGUITest Class Reference

Class ilTestVerificationTableGUITest. More...

+ Inheritance diagram for ilTestVerificationTableGUITest:
+ Collaboration diagram for ilTestVerificationTableGUITest:

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

ilTestVerificationTableGUI $tableGui
 

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

ilTestVerificationTableGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 31 of file ilTestVerificationTableGUITest.php.

31 : void
32 {
33 parent::setUp();
34
35 $this->addGlobal_ilUser();
36
37 $ctrl_mock = $this->createMock(ilCtrl::class);
38 $ctrl_mock
39 ->method("getFormAction")
40 ->willReturnCallback(function () {
41 return "testFormAction";
42 });
43 $this->setGlobalVariable("ilCtrl", $ctrl_mock);
44
45 $test_gui = $this->getMockBuilder(ilObjTestVerificationGUI::class)->disableOriginalConstructor()->getMock();
46 $this->tableGui = new ilTestVerificationTableGUI(
47 $test_gui,
48 '',
49 $this->createMock(ilDBInterface::class),
50 $this->createMock(ilObjUser::class),
51 $this->createMock(\ILIAS\Test\Logging\TestLogger::class)
52 );
53 }
List all completed tests for current user.
setGlobalVariable(string $name, mixed $value)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References addGlobal_ilUser(), and setGlobalVariable().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestVerificationTableGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 55 of file ilTestVerificationTableGUITest.php.

55 : void
56 {
57 $this->assertInstanceOf(ilTestVerificationTableGUI::class, $this->tableGui);
58 }

Field Documentation

◆ $tableGui

ilTestVerificationTableGUI ilTestVerificationTableGUITest::$tableGui
private

Definition at line 29 of file ilTestVerificationTableGUITest.php.


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