ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
ilContextTest.php
Go to the documentation of this file.
1
<?php
2
19
use
PHPUnit\Framework\TestCase
;
20
27
class
ilContextTest
extends
TestCase
28
{
29
protected
function
setUp
(): void
30
{
31
require_once(
"components/ILIAS/Context/tests/class.ilContextExtended.php"
);
32
}
33
37
public
function
testInit
(
string
$context
,
string
$className): void
38
{
39
$context_obj =
ilContextExtended::init
($context);
40
$this->assertTrue($context_obj);
41
$this->assertEquals(
ilContextExtended::getType
(), $context);
42
$this->assertEquals(
ilContextExtended::getClassName
(), $className);
43
}
44
45
public
static
function
contextProvider
(): array
46
{
47
return
[
48
[
ilContext::CONTEXT_WEB
, ilContextWeb::class],
49
[
ilContext::CONTEXT_CRON
, ilContextCron::class],
50
[
ilContext::CONTEXT_RSS
, ilContextRss::class],
51
[
ilContext::CONTEXT_ICAL
, ilContextIcal::class],
52
[
ilContext::CONTEXT_SOAP
, ilContextSoap::class],
53
[
ilContext::CONTEXT_WEBDAV
, ilContextWebdav::class],
54
[
ilContext::CONTEXT_RSS_AUTH
, ilContextRssAuth::class],
55
[
ilContext::CONTEXT_SESSION_REMINDER
, ilContextSessionReminder::class],
56
[
ilContext::CONTEXT_SOAP_WITHOUT_CLIENT
, ilContextSoapWithoutClient::class],
57
[
ilContext::CONTEXT_UNITTEST
, ilContextUnitTest::class],
58
[
ilContext::CONTEXT_REST
, ilContextRest::class],
59
[
ilContext::CONTEXT_SCORM
, ilContextScorm::class],
60
[
ilContext::CONTEXT_WAC
, ilContextWAC::class],
61
];
62
}
63
}
ilContext\CONTEXT_WAC
const CONTEXT_WAC
Definition:
class.ilContext.php:43
$context
$context
Definition:
webdav.php:31
ilContextExtended\getClassName
static getClassName()
Definition:
class.ilContextExtended.php:28
ilContextTest\contextProvider
static contextProvider()
Definition:
ilContextTest.php:45
ilContext\CONTEXT_RSS
const CONTEXT_RSS
Definition:
class.ilContext.php:32
ilContext\CONTEXT_WEBDAV
const CONTEXT_WEBDAV
Definition:
class.ilContext.php:36
ilContext\CONTEXT_UNITTEST
const CONTEXT_UNITTEST
Definition:
class.ilContext.php:40
ilContext\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilContext.php:31
ilContext\CONTEXT_SCORM
const CONTEXT_SCORM
Definition:
class.ilContext.php:42
ilContext\CONTEXT_RSS_AUTH
const CONTEXT_RSS_AUTH
Definition:
class.ilContext.php:37
ilContext\CONTEXT_SESSION_REMINDER
const CONTEXT_SESSION_REMINDER
Definition:
class.ilContext.php:38
ilContext\CONTEXT_REST
const CONTEXT_REST
Definition:
class.ilContext.php:41
ilContext\CONTEXT_ICAL
const CONTEXT_ICAL
Definition:
class.ilContext.php:33
ilContextTest\testInit
testInit(string $context, string $className)
contextProvider
Definition:
ilContextTest.php:37
ilContext\CONTEXT_SOAP_WITHOUT_CLIENT
const CONTEXT_SOAP_WITHOUT_CLIENT
Definition:
class.ilContext.php:39
ilContextTest\setUp
setUp()
Definition:
ilContextTest.php:29
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
ilContext\CONTEXT_WEB
const CONTEXT_WEB
Definition:
class.ilContext.php:30
ilContext\getType
static getType()
Get context type.
Definition:
class.ilContext.php:165
ilContext\CONTEXT_SOAP
const CONTEXT_SOAP
Definition:
class.ilContext.php:34
TestCase
ilContextTest
TestCase for the ilContext.
Definition:
ilContextTest.php:27
TestCase
components
ILIAS
Context
tests
ilContextTest.php
Generated on Sun Apr 13 2025 23:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)