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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjTestVerificationListGUITest:
+ Collaboration diagram for ilObjTestVerificationListGUITest:

Public Member Functions

 testConstruct ()
 
 testInit ()
 
 testGetProperties ()
 
- 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

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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file ilObjTestVerificationListGUITest.php.

Member Function Documentation

◆ setUp()

ilObjTestVerificationListGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 23 of file ilObjTestVerificationListGUITest.php.

23 : void
24 {
25 parent::setUp();
26
27 $this->addGlobal_ilAccess();
28 $this->addGlobal_ilSetting();
29 $this->addGlobal_filesystem();
30 $this->addGlobal_rbacsystem();
31 $this->addGlobal_rbacreview();
34 $this->addGlobal_user();
35
36 $this->testObj = new ilObjTestVerificationListGUI();
37 }
Class ilObjTestVerificationListGUI.
addGlobal_filesystem()
addGlobal_ilObjDataCache()
addGlobal_ilLoggerFactory()
addGlobal_rbacsystem()
addGlobal_rbacreview()

References addGlobal_filesystem(), addGlobal_ilAccess(), addGlobal_ilLoggerFactory(), addGlobal_ilObjDataCache(), addGlobal_ilSetting(), addGlobal_rbacreview(), addGlobal_rbacsystem(), and addGlobal_user().

+ Here is the call graph for this function:

◆ testConstruct()

ilObjTestVerificationListGUITest::testConstruct ( )

Definition at line 38 of file ilObjTestVerificationListGUITest.php.

38 : void
39 {
40 $this->assertInstanceOf(ilObjTestVerificationListGUI::class, $this->testObj);
41 }

◆ testGetProperties()

ilObjTestVerificationListGUITest::testGetProperties ( )

Definition at line 80 of file ilObjTestVerificationListGUITest.php.

80 : void
81 {
82 $this->assertEquals(
83 [[
84 'alert' => false,
85 'property' => '',
86 'value' => ''
87 ]],
88 $this->testObj->getProperties(),
89 );
90 }

◆ testInit()

ilObjTestVerificationListGUITest::testInit ( )

Definition at line 43 of file ilObjTestVerificationListGUITest.php.

43 : void
44 {
45 $this->assertNull($this->testObj->init());
46
47 $reflection = new ReflectionObject($this->testObj);
48
49 $delete_enabled_property = $reflection->getProperty('delete_enabled');
50 $this->assertTrue($delete_enabled_property->getValue($this->testObj));
51
52 $cut_enabled_property = $reflection->getProperty('cut_enabled');
53 $this->assertTrue($cut_enabled_property->getValue($this->testObj));
54
55 $copy_enabled_property = $reflection->getProperty('copy_enabled');
56 $this->assertTrue($copy_enabled_property->getValue($this->testObj));
57
58 $subscribe_enabled_property = $reflection->getProperty('subscribe_enabled');
59 $this->assertFalse($subscribe_enabled_property->getValue($this->testObj));
60
61 $link_enabled_property = $reflection->getProperty('link_enabled');
62 $this->assertFalse($link_enabled_property->getValue($this->testObj));
63
64 $info_screen_enabled_property = $reflection->getProperty('info_screen_enabled');
65 $this->assertFalse($info_screen_enabled_property->getValue($this->testObj));
66
67 $type_property = $reflection->getProperty('type');
68 $this->assertEquals('tstv', $type_property->getValue($this->testObj));
69
70 $gui_class_name_property = $reflection->getProperty('gui_class_name');
71 $this->assertEquals(ilObjTestVerificationGUI::class, $gui_class_name_property->getValue($this->testObj));
72
73 $commands_property = $reflection->getProperty('commands');
74 $this->assertEquals(
75 [['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show', 'default' => true]],
76 $commands_property->getValue($this->testObj)
77 );
78 }

Field Documentation

◆ $testObj

ilObjTestVerificationListGUI ilObjTestVerificationListGUITest::$testObj
private

Definition at line 21 of file ilObjTestVerificationListGUITest.php.


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