TestCase for the ilContext needsInstalledILIAS.
More...
◆ getterProvider()
ilInitialisationTest::getterProvider |
( |
| ) |
|
Definition at line 50 of file ilInitialisationTest.php.
References $DIC, and array.
52 (
array(
"ilDBInterface",
function (
$DIC) {
return $DIC->database(); })
54 ,
array(
"ilObjUser",
function (
$DIC) {
return $DIC->user(); })
55 ,
array(
"ilRbacSystem",
function (
$DIC) {
return $DIC->rbac()->system(); })
56 ,
array(
"ilRbacAdmin",
function (
$DIC) {
return $DIC->rbac()->admin(); })
57 ,
array(
"ilRbacReview",
function (
$DIC) {
return $DIC->rbac()->review(); })
58 ,
array(
"ilAccessHandler",
function (
$DIC) {
return $DIC->access(); })
59 ,
array(
"ilTree",
function (
$DIC) {
return $DIC->repositoryTree(); })
60 ,
array(
"ilLanguage",
function (
$DIC) {
return $DIC->language(); })
67 ,
array(
"ilLogger",
function (
$DIC) {
return $DIC->logger()->root(); })
68 ,
array(
"ilLogger",
function (
$DIC) {
return $DIC->logger()->grp(); })
69 ,
array(
"ilLogger",
function (
$DIC) {
return $DIC->logger()->crs(); })
70 ,
array(
"ilLogger",
function (
$DIC) {
return $DIC->logger()->tree(); })
Create styles array
The data for the language used.
◆ globalsProvider()
ilInitialisationTest::globalsProvider |
( |
| ) |
|
Definition at line 39 of file ilInitialisationTest.php.
References array.
42 (
array(
"ilIliasIniFile",
"ilIniFile")
43 ,
array(
"ilCtrl",
"ilCtrl")
44 ,
array(
"tree",
"ilTree")
45 ,
array(
"ilLog",
"ilLogger")
46 ,
array(
"ilDB",
"ilDBInterface")
Create styles array
The data for the language used.
◆ setUp()
ilInitialisationTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 11 of file ilInitialisationTest.php.
12 PHPUnit_Framework_Error_Deprecated::$enabled = FALSE;
14 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
15 ilUnitUtil::performInitialisation();
◆ test_DIC()
ilInitialisationTest::test_DIC |
( |
|
$global_name, |
|
|
|
$class_name |
|
) |
| |
globalsProvider
Definition at line 21 of file ilInitialisationTest.php.
References $DIC, and $GLOBALS.
24 $this->assertInstanceOf($class_name,
$GLOBALS[$global_name]);
25 $this->assertInstanceOf($class_name, $DIC[$global_name]);
26 $this->assertSame(
$GLOBALS[$global_name], $DIC[$global_name]);
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
◆ test_DIC_getters()
ilInitialisationTest::test_DIC_getters |
( |
|
$class_name, |
|
|
|
$getter |
|
) |
| |
getterProvider
Definition at line 32 of file ilInitialisationTest.php.
References $DIC.
35 $service = $getter($DIC);
36 $this->assertInstanceOf($class_name, $service);
◆ $backupGlobals
ilInitialisationTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: