ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 

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=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

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

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();
32  $this->addGlobal_ilObjDataCache();
33  $this->addGlobal_ilLoggerFactory();
34 
35  $this->testObj = new ilObjTestVerificationListGUI();
36  }
Class ilObjTestVerificationListGUI.

◆ testConstruct()

ilObjTestVerificationListGUITest::testConstruct ( )

Definition at line 37 of file ilObjTestVerificationListGUITest.php.

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

◆ testGetProperties()

ilObjTestVerificationListGUITest::testGetProperties ( )

Definition at line 79 of file ilObjTestVerificationListGUITest.php.

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

◆ testInit()

ilObjTestVerificationListGUITest::testInit ( )

Definition at line 42 of file ilObjTestVerificationListGUITest.php.

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

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: