ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
ilContextTest.php
Go to the documentation of this file.
1
<?
php
8
class
ilContextTest
extends
PHPUnit_Framework_TestCase
{
9
protected
$backupGlobals
= FALSE;
10
11
protected
function
setUp
() {
12
PHPUnit_Framework_Error_Deprecated::$enabled = FALSE;
13
require_once(
"Services/Context/test/class.ilContextExtended.php"
);
14
}
15
21
public
function
testInit
($context, $className) {
22
$context_obj =
ilContextExtended::init
($context);
23
$this->assertTrue($context_obj);
24
$this->assertEquals(
ilContextExtended::getType
(), $context);
25
$this->assertEquals(
ilContextExtended::getClassName
(), $className);
26
}
27
28
public
function
contextProvider
() {
29
require_once(
"Services/Context/test/class.ilContextExtended.php"
);
30
31
return
array
(
array
(
ilContextExtended::CONTEXT_WEB
,
"ilContextWeb"
),
32
array
(
ilContextExtended::CONTEXT_CRON
,
"ilContextCron"
),
33
array
(
ilContextExtended::CONTEXT_RSS
,
"ilContextRss"
),
34
array
(
ilContextExtended::CONTEXT_ICAL
,
"ilContextIcal"
),
35
array
(
ilContextExtended::CONTEXT_SOAP
,
"ilContextSoap"
),
36
array
(
ilContextExtended::CONTEXT_WEBDAV
,
"ilContextWebdav"
),
37
array
(
ilContextExtended::CONTEXT_RSS_AUTH
,
"ilContextRssAuth"
),
38
array
(
ilContextExtended::CONTEXT_SESSION_REMINDER
,
"ilContextSessionReminder"
),
39
array
(
ilContextExtended::CONTEXT_SOAP_WITHOUT_CLIENT
,
"ilContextSoapWithoutClient"
),
40
array
(
ilContextExtended::CONTEXT_UNITTEST
,
"ilContextUnitTest"
),
41
array
(
ilContextExtended::CONTEXT_REST
,
"ilContextRest"
),
42
array
(
ilContextExtended::CONTEXT_SCORM
,
"ilContextScorm"
),
43
array
(
ilContextExtended::CONTEXT_WAC
,
"ilContextWAC"
));
44
}
45
}
ilContext\CONTEXT_WAC
const CONTEXT_WAC
Definition:
class.ilContext.php:31
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:24
ilContext\CONTEXT_UNITTEST
const CONTEXT_UNITTEST
Definition:
class.ilContext.php:28
ilContext\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilContext.php:20
ilContext\CONTEXT_SCORM
const CONTEXT_SCORM
Definition:
class.ilContext.php:30
ilContext\CONTEXT_RSS_AUTH
const CONTEXT_RSS_AUTH
Definition:
class.ilContext.php:25
ilContextTest\testInit
testInit($context, $className)
test init ilContext
Definition:
ilContextTest.php:21
PHPUnit_Framework_TestCase
ilContext\CONTEXT_SESSION_REMINDER
const CONTEXT_SESSION_REMINDER
Definition:
class.ilContext.php:26
ilContext\CONTEXT_REST
const CONTEXT_REST
Definition:
class.ilContext.php:29
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:27
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilContextTest\setUp
setUp()
Definition:
ilContextTest.php:11
ilContext\init
static init($a_type)
Init context by type.
Definition:
class.ilContext.php:42
ilContextTest\$backupGlobals
$backupGlobals
Definition:
ilContextTest.php:9
ilContext\CONTEXT_WEB
const CONTEXT_WEB
Definition:
class.ilContext.php:19
php
ilContext\getType
static getType()
Get context type.
Definition:
class.ilContext.php:149
ilContext\CONTEXT_SOAP
const CONTEXT_SOAP
Definition:
class.ilContext.php:23
ilContextTest\contextProvider
contextProvider()
Definition:
ilContextTest.php:28
ilContextTest
TestCase for the ilContext.
Definition:
ilContextTest.php:8
Services
Context
test
ilContextTest.php
Generated on Fri Jan 24 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)