12 PHPUnit_Framework_Error_Deprecated::$enabled = FALSE;
14 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
15 ilUnitUtil::performInitialisation();
21 public function test_DIC($global_name, $class_name) {
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]);
35 $service = $getter($DIC);
36 $this->assertInstanceOf($class_name, $service);
42 (
array(
"ilIliasIniFile",
"ilIniFile")
43 ,
array(
"ilCtrl",
"ilCtrl")
44 ,
array(
"tree",
"ilTree")
45 ,
array(
"ilLog",
"ilLogger")
46 ,
array(
"ilDB",
"ilDBInterface")
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(); })
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
TestCase for the ilContext needsInstalledILIAS.
test_DIC_getters($class_name, $getter)
getterProvider
Create styles array
The data for the language used.
test_DIC($global_name, $class_name)
globalsProvider