ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
assBaseTestCase.php
Go to the documentation of this file.
1 <?php
2 
22 
26 abstract class assBaseTestCase extends TestCase
27 {
29 
30  protected ?Container $dic = null;
31 
35  protected function setUp(): void
36  {
37  global $DIC;
38 
39  $this->dic = is_object($DIC) ? clone $DIC : $DIC;
40 
41  $DIC = new Container();
42 
43  $this->addGlobal_tpl();
44  $this->addGlobal_lng();
45  $this->addGlobal_ilObjDataCache();
46  $this->addGlobal_ilAccess();
47  $this->addGlobal_ilHelp();
48  $this->addGlobal_ilUser();
49  $this->addGlobal_ilTabs();
50  $this->addGlobal_rbacsystem();
51  $this->addGlobal_rbacreview();
52  $this->addGlobal_refinery();
53  $this->addGlobal_ilDB();
54  $this->addGlobal_tree();
55  $this->addGlobal_ilComponentRepository();
56  $this->addGlobal_ilComponentFactory();
57  $this->addGlobal_http();
58  $this->addGlobal_upload();
59  $this->addGlobal_ilCtrl();
60  $this->addGlobal_resourceStorage();
61  $this->addGlobal_filesystem();
62  $this->addGlobal_static_url();
63  $this->addGlobal_ilIliasIniFile();
64  $this->addGlobal_ilSetting();
65  $this->addGlobal_uiFactory();
66  $this->addGlobal_uiRenderer();
67 
68  $this->defineGlobalConstants();
69 
70  parent::setUp();
71  }
72 
73  protected function tearDown(): void
74  {
75  global $DIC;
76 
77  $DIC = $this->dic;
78 
79  parent::tearDown();
80  }
81 
82  protected function getIRSSMock()
83  {
84  return $this->getMockBuilder(Services::class)->disableOriginalConstructor()->getMock();
85  }
86 }
Class assBaseTestCase.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22