ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestVerificationTableGUITest 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 ilTestVerificationTableGUITest:
+ Collaboration diagram for ilTestVerificationTableGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilTestVerificationTableGUI $tableGui
 

Additional Inherited Members

- 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 Class ilTestVerificationTableGUITest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestVerificationTableGUITest.php.

Member Function Documentation

◆ setUp()

ilTestVerificationTableGUITest::setUp ( )
protected

Definition at line 29 of file ilTestVerificationTableGUITest.php.

References ILIAS\GlobalScreen\Provider\__construct(), ILIAS\UI\examples\MessageBox\Info\info(), ilLogLevel\INFO, and ilTestBaseTestCase\setGlobalVariable().

29  : void
30  {
31  parent::setUp();
32 
33  $lng_mock = $this->createMock(ilLanguage::class);
34  $ctrl_mock = $this->createMock(ilCtrl::class);
35  $ctrl_mock
36  ->method("getFormAction")
37  ->willReturnCallback(function () {
38  return "testFormAction";
39  });
40 
41  $this->setGlobalVariable("lng", $lng_mock);
42  $this->setGlobalVariable("ilCtrl", $ctrl_mock);
43  $this->setGlobalVariable("tpl", $this->createMock(ilGlobalPageTemplate::class));
44  $this->setGlobalVariable("component.repository", $this->createMock(ilComponentRepository::class));
45  $this->setGlobalVariable("component.factory", $this->createMock(ilComponentFactory::class));
46  $this->setGlobalVariable("ilDB", $this->createMock(ilDBInterface::class));
47  $this->setGlobalVariable("ilUser", $this->createMock(ilObjUser::class));
48 
49  $this->setGlobalVariable("ilLoggerFactory", new class () extends ilLoggerFactory {
50  public function __construct()
51  {
52  }
53 
54  public static function getRootLogger(): ilLogger
55  {
56  return new class () extends ilLogger {
57  public function __construct()
58  {
59  }
60 
61  public function write(string $a_message, $a_level = ilLogLevel::INFO): void
62  {
63  }
64 
65  public function info(string $a_message): void
66  {
67  }
68 
69  public function debug(string $a_message, array $a_context = array()): void
70  {
71  }
72  };
73  }
74 
75  public static function getLogger(string $a_component_id): ilLogger
76  {
77  return new class () extends ilLogger {
78  public function __construct()
79  {
80  }
81 
82  public function write(string $a_message, $a_level = ilLogLevel::INFO): void
83  {
84  }
85 
86  public function debug(string $a_message, array $a_context = array()): void
87  {
88  }
89  };
90  }
91  });
92 
93  $test_gui = $this->getMockBuilder(ilObjTestVerificationGUI::class)->disableOriginalConstructor()->getMock();
94  $this->tableGui = new ilTestVerificationTableGUI($test_gui);
95  }
setGlobalVariable(string $name, $value)
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestVerificationTableGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 97 of file ilTestVerificationTableGUITest.php.

97  : void
98  {
99  $this->assertInstanceOf(ilTestVerificationTableGUI::class, $this->tableGui);
100  }

Field Documentation

◆ $tableGui

ilTestVerificationTableGUI ilTestVerificationTableGUITest::$tableGui
private

Definition at line 27 of file ilTestVerificationTableGUITest.php.


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