ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilContextTest.php
Go to the documentation of this file.
1
<?php
2
use
PHPUnit\Framework\TestCase
;
3
10
class
ilContextTest
extends
TestCase
11
{
12
protected
$backupGlobals
=
false
;
13
14
protected
function
setUp
() : void
15
{
16
require_once(
"Services/Context/test/class.ilContextExtended.php"
);
17
}
18
24
public
function
testInit
(
$context
, $className)
25
{
26
$context_obj =
ilContextExtended::init
(
$context
);
27
$this->assertTrue($context_obj);
28
$this->assertEquals(
ilContextExtended::getType
(),
$context
);
29
$this->assertEquals(
ilContextExtended::getClassName
(), $className);
30
}
31
32
public
function
contextProvider
()
33
{
34
require_once(
"Services/Context/test/class.ilContextExtended.php"
);
35
36
return
array(array(
ilContextExtended::CONTEXT_WEB
,
"ilContextWeb"
),
37
array(
ilContextExtended::CONTEXT_CRON
,
"ilContextCron"
),
38
array(
ilContextExtended::CONTEXT_RSS
,
"ilContextRss"
),
39
array(
ilContextExtended::CONTEXT_ICAL
,
"ilContextIcal"
),
40
array(
ilContextExtended::CONTEXT_SOAP
,
"ilContextSoap"
),
41
array(
ilContextExtended::CONTEXT_WEBDAV
,
"ilContextWebdav"
),
42
array(
ilContextExtended::CONTEXT_RSS_AUTH
,
"ilContextRssAuth"
),
43
array(
ilContextExtended::CONTEXT_SESSION_REMINDER
,
"ilContextSessionReminder"
),
44
array(
ilContextExtended::CONTEXT_SOAP_WITHOUT_CLIENT
,
"ilContextSoapWithoutClient"
),
45
array(
ilContextExtended::CONTEXT_UNITTEST
,
"ilContextUnitTest"
),
46
array(
ilContextExtended::CONTEXT_REST
,
"ilContextRest"
),
47
array(
ilContextExtended::CONTEXT_SCORM
,
"ilContextScorm"
),
48
array(
ilContextExtended::CONTEXT_WAC
,
"ilContextWAC"
));
49
}
50
}
ilContext\CONTEXT_WAC
const CONTEXT_WAC
Definition:
class.ilContext.php:32
$context
$context
Definition:
webdav.php:26
ilContextExtended\getClassName
static getClassName()
Get context className.
Definition:
class.ilContextExtended.php:24
ilContext\CONTEXT_RSS
const CONTEXT_RSS
Definition:
class.ilContext.php:21
ilContext\CONTEXT_WEBDAV
const CONTEXT_WEBDAV
Definition:
class.ilContext.php:25
ilContext\CONTEXT_UNITTEST
const CONTEXT_UNITTEST
Definition:
class.ilContext.php:29
ilContext\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilContext.php:20
ilContext\CONTEXT_SCORM
const CONTEXT_SCORM
Definition:
class.ilContext.php:31
ilContext\CONTEXT_RSS_AUTH
const CONTEXT_RSS_AUTH
Definition:
class.ilContext.php:26
ilContextTest\testInit
testInit($context, $className)
test init ilContext
Definition:
ilContextTest.php:24
ilContext\CONTEXT_SESSION_REMINDER
const CONTEXT_SESSION_REMINDER
Definition:
class.ilContext.php:27
ilContext\CONTEXT_REST
const CONTEXT_REST
Definition:
class.ilContext.php:30
ilContext\CONTEXT_ICAL
const CONTEXT_ICAL
Definition:
class.ilContext.php:22
ilContext\CONTEXT_SOAP_WITHOUT_CLIENT
const CONTEXT_SOAP_WITHOUT_CLIENT
Definition:
class.ilContext.php:28
ilContextTest\setUp
setUp()
Definition:
ilContextTest.php:14
ilContext\init
static init($a_type)
Init context by type.
Definition:
class.ilContext.php:45
ilContextTest\$backupGlobals
$backupGlobals
Definition:
ilContextTest.php:12
ilContext\CONTEXT_WEB
const CONTEXT_WEB
Definition:
class.ilContext.php:19
ilContext\getType
static getType()
Get context type.
Definition:
class.ilContext.php:183
ilContext\CONTEXT_SOAP
const CONTEXT_SOAP
Definition:
class.ilContext.php:23
ilContextTest\contextProvider
contextProvider()
Definition:
ilContextTest.php:32
TestCase
ilContextTest
TestCase for the ilContext.
Definition:
ilContextTest.php:10
Services
Context
test
ilContextTest.php
Generated on Sun Apr 6 2025 21:01:19 for ILIAS by
1.8.13 (using
Doxyfile
)