TestCase for the ilContext needsInstalledILIAS.
More...
◆ getterProvider()
ilInitialisationTest::getterProvider |
( |
| ) |
|
Definition at line 54 of file ilInitialisationTest.php.
References $DIC.
56 return array( array(
"ilDBInterface",
function (
$DIC) {
57 return $DIC->database();
59 , array(
"ilCtrl",
function (
$DIC) {
62 , array(
"ilObjUser",
function (
$DIC) {
65 , array(
"ilRbacSystem",
function (
$DIC) {
66 return $DIC->rbac()->system();
68 , array(
"ilRbacAdmin",
function (
$DIC) {
69 return $DIC->rbac()->admin();
71 , array(
"ilRbacReview",
function (
$DIC) {
72 return $DIC->rbac()->review();
74 , array(
"ilAccess",
function (
$DIC) {
75 return $DIC->access();
77 , array(
"ilTree",
function (
$DIC) {
78 return $DIC->repositoryTree();
80 , array(
"ilLanguage",
function (
$DIC) {
81 return $DIC->language();
89 , array(
"ilLogger",
function (
$DIC) {
90 return $DIC->logger()->root();
92 , array(
"ilLogger",
function (
$DIC) {
93 return $DIC->logger()->grp();
95 , array(
"ilLogger",
function (
$DIC) {
96 return $DIC->logger()->crs();
98 , array(
"ilLogger",
function (
$DIC) {
99 return $DIC->logger()->tree();
◆ globalsProvider()
ilInitialisationTest::globalsProvider |
( |
| ) |
|
Definition at line 43 of file ilInitialisationTest.php.
46 return array( array(
"ilIliasIniFile",
"ilIniFile")
47 , array(
"ilCtrl",
"ilCtrl")
48 , array(
"tree",
"ilTree")
49 , array(
"ilLog",
"ilLogger")
50 , array(
"ilDB",
"ilDBInterface")
◆ setUp()
ilInitialisationTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 12 of file ilInitialisationTest.php.
14 PHPUnit_Framework_Error_Deprecated::$enabled =
false;
16 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
17 ilUnitUtil::performInitialisation();
◆ test_DIC()
ilInitialisationTest::test_DIC |
( |
|
$global_name, |
|
|
|
$class_name |
|
) |
| |
globalsProvider
Definition at line 23 of file ilInitialisationTest.php.
References $DIC, and $GLOBALS.
27 $this->assertInstanceOf($class_name,
$GLOBALS[$global_name]);
28 $this->assertInstanceOf($class_name, $DIC[$global_name]);
29 $this->assertSame(
$GLOBALS[$global_name], $DIC[$global_name]);
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
◆ test_DIC_getters()
ilInitialisationTest::test_DIC_getters |
( |
|
$class_name, |
|
|
|
$getter |
|
) |
| |
getterProvider
Definition at line 35 of file ilInitialisationTest.php.
References $DIC.
39 $service = $getter($DIC);
40 $this->assertInstanceOf($class_name, $service);
◆ $backupGlobals
ilInitialisationTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: