ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilCourseMailTemplateTutorContextTest.php
Go to the documentation of this file.
1
<?php
2
19
use
PHPUnit\Framework\TestCase
;
20
use
ILIAS\DI\Container
;
21
25
class
ilCourseMailTemplateTutorContextTest
extends
TestCase
26
{
27
private
?
\ILIAS\DI\Container
$dic_backup
= null;
28
29
protected
function
setUp
(): void
30
{
31
global
$DIC
;
32
$this->dic_backup = is_object($DIC) ? clone
$DIC
:
$DIC
;
33
34
$DIC =
new
Container
();
35
$DIC[
'ilObjDataCache'
] = $this->createMock(ilObjectDataCache::class);
36
$DIC[
'ilDB'
] = $this->createMock(ilDBInterface::class);
37
}
38
39
protected
function
tearDown
(): void
40
{
41
global
$DIC
;
42
$DIC =
$this->dic_backup
;
43
}
44
45
public
function
testNonExistingPlaceholderWontBeResolved
(): void
46
{
47
$mailTemplateContext =
new
ilCourseMailTemplateTutorContext
();
48
49
$result = $mailTemplateContext->resolveSpecificPlaceholder(
'TEST_PLACEHOLDER'
, array());
50
51
$this->assertEquals(
''
, $result);
52
}
53
}
ilCourseMailTemplateTutorContextTest\tearDown
tearDown()
Definition:
ilCourseMailTemplateTutorContextTest.php:39
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:31
$DIC
global $DIC
Definition:
feed.php:28
Container
ilCourseMailTemplateTutorContextTest\testNonExistingPlaceholderWontBeResolved
testNonExistingPlaceholderWontBeResolved()
Definition:
ilCourseMailTemplateTutorContextTest.php:45
ilCourseMailTemplateTutorContext
Definition:
class.ilCourseMailTemplateTutorContext.php:25
ilCourseMailTemplateTutorContextTest\setUp
setUp()
Definition:
ilCourseMailTemplateTutorContextTest.php:29
ilCourseMailTemplateTutorContextTest
Class ilCourseMailTemplateTutorContextTest.
Definition:
ilCourseMailTemplateTutorContextTest.php:25
ilCourseMailTemplateTutorContextTest\$dic_backup
ILIAS DI Container $dic_backup
Definition:
ilCourseMailTemplateTutorContextTest.php:27
TestCase
Modules
Course
test
ilCourseMailTemplateTutorContextTest.php
Generated on Fri Apr 4 2025 22:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)