ILIAS
trunk Revision v11.0_alpha-1843-g9e1fad99175
◀ 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
DecoratedRendererTest.php
Go to the documentation of this file.
1
<?php
2
19
require_once(__DIR__ .
"/TestComponent.php"
);
20
require_once(__DIR__ .
"/../Base.php"
);
21
22
use
ILIAS\UI\Component\Test\TestComponent
;
23
use
ILIAS\UI\Implementation\Render\DecoratedRenderer
;
24
25
class
DecoratedRendererTest
extends
ILIAS_UI_TestBase
26
{
27
public
function
testRender
()
28
{
29
$c1 =
new
TestComponent
(
"foo"
);
30
$renderer
= $this->getDecoratedRenderer($this->getDefaultRenderer());
31
$html =
$renderer
->render($c1);
32
$this->assertEquals(
"foo"
, $html);
33
}
34
35
public
function
testRenderAsync
()
36
{
37
$c1 =
new
TestComponent
(
"foo"
);
38
$renderer
= $this->getDecoratedRenderer($this->getDefaultRenderer());
39
$html =
$renderer
->renderAsync($c1);
40
$this->assertEquals(
"foo"
, $html);
41
}
42
43
public
function
testRenderWithManipulation
()
44
{
45
$c1 =
new
TestComponent
(
"foo"
);
46
$renderer
= $this->getDecoratedRenderer($this->getDefaultRenderer());
47
$renderer
->manipulate();
48
$html =
$renderer
->render($c1);
49
$this->assertEquals(
"This content was manipulated"
, $html);
50
}
51
}
DecoratedRendererTest\testRenderAsync
testRenderAsync()
Definition:
DecoratedRendererTest.php:35
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\Component\Test\TestComponent
Definition:
TestComponent.php:33
DecoratedRendererTest\testRender
testRender()
Definition:
DecoratedRendererTest.php:27
TestComponent
ILIAS_UI_TestBase
DecoratedRenderer
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
DecoratedRendererTest
Definition:
DecoratedRendererTest.php:25
DecoratedRendererTest\testRenderWithManipulation
testRenderWithManipulation()
Definition:
DecoratedRendererTest.php:43
components
ILIAS
UI
tests
Renderer
DecoratedRendererTest.php
Generated on Fri Apr 18 2025 23:04:34 for ILIAS by
1.8.13 (using
Doxyfile
)