TestCase for the ilContext @group needsInstalledILIAS.
More...
◆ getterProvider()
ilInitialisationTest::getterProvider |
( |
| ) |
|
Definition at line 54 of file ilInitialisationTest.php.
55 {
56 return array( array(
"ilDBInterface",
function (
$DIC) {
57 return $DIC->database();
58 })
59 , array(
"ilCtrl",
function (
$DIC) {
61 })
62 , array(
"ilObjUser",
function (
$DIC) {
64 })
65 , array(
"ilRbacSystem",
function (
$DIC) {
66 return $DIC->rbac()->system();
67 })
68 , array(
"ilRbacAdmin",
function (
$DIC) {
69 return $DIC->rbac()->admin();
70 })
71 , array(
"ilRbacReview",
function (
$DIC) {
72 return $DIC->rbac()->review();
73 })
74 , array(
"ilAccess",
function (
$DIC) {
75 return $DIC->access();
76 })
77 , array(
"ilTree",
function (
$DIC) {
78 return $DIC->repositoryTree();
79 })
80 , array(
"ilLanguage",
function (
$DIC) {
81 return $DIC->language();
82 })
83
84
85
86
87
88
89 , array(
"ilLogger",
function (
$DIC) {
90 return $DIC->logger()->root();
91 })
92 , array(
"ilLogger",
function (
$DIC) {
93 return $DIC->logger()->grp();
94 })
95 , array(
"ilLogger",
function (
$DIC) {
96 return $DIC->logger()->crs();
97 })
98 , array(
"ilLogger",
function (
$DIC) {
99 return $DIC->logger()->tree();
100 })
101 );
102 }
References $DIC.
◆ globalsProvider()
ilInitialisationTest::globalsProvider |
( |
| ) |
|
Definition at line 43 of file ilInitialisationTest.php.
44 {
45
46 return array( array("ilIliasIniFile", "ilIniFile")
47 , array("ilCtrl", "ilCtrl")
48 , array("tree", "ilTree")
49 , array("ilLog", "ilLogger")
50 , array("ilDB", "ilDBInterface")
51 );
52 }
◆ setUp()
ilInitialisationTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 12 of file ilInitialisationTest.php.
13 {
14 PHPUnit_Framework_Error_Deprecated::$enabled = false;
15
16 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
17 ilUnitUtil::performInitialisation();
18 }
◆ test_DIC()
ilInitialisationTest::test_DIC |
( |
|
$global_name, |
|
|
|
$class_name |
|
) |
| |
@dataProvider globalsProvider
Definition at line 23 of file ilInitialisationTest.php.
24 {
26
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]);
30 }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
References $DIC, and $GLOBALS.
◆ test_DIC_getters()
ilInitialisationTest::test_DIC_getters |
( |
|
$class_name, |
|
|
|
$getter |
|
) |
| |
@dataProvider getterProvider
Definition at line 35 of file ilInitialisationTest.php.
36 {
38
39 $service = $getter(
$DIC);
40 $this->assertInstanceOf($class_name, $service);
41 }
References $DIC.
◆ $backupGlobals
ilInitialisationTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: