ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
DefaultRendererFactoryTest.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
class
DefaultRendererFactoryForTest
extends
\ILIAS\UI\Implementation\Render\DefaultRendererFactory
6
{
7
public
function
__construct
()
8
{
9
}
10
11
public
function
_getRendererNameFor
($component)
12
{
13
return
$this->
getRendererNameFor
($component);
14
}
15
}
16
17
class
DefaultRendererFactoryTest
extends
PHPUnit_Framework_TestCase
18
{
19
public
function
test_getRendererNameFor
()
20
{
21
$f
=
new
DefaultRendererFactoryForTest
;
22
23
$renderer_class =
$f
->_getRendererNameFor(
new
\
ILIAS
\
UI
\Implementation\
Component
\Glyph\Glyph(
"up"
,
"up"
));
24
$expected = \ILIAS\UI\Implementation\Component\Glyph\Renderer::class;
25
$this->assertEquals($expected, $renderer_class);
26
}
27
}
UI
Class Factory.
ILIAS
Class BaseForm.
ILIAS\UI\Component
PHPUnit_Framework_TestCase
DefaultRendererFactoryTest
Definition:
DefaultRendererFactoryTest.php:17
DefaultRendererFactoryForTest\__construct
__construct()
Definition:
DefaultRendererFactoryTest.php:7
ILIAS\UI\Implementation\Render\DefaultRendererFactory\getRendererNameFor
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
Definition:
DefaultRendererFactory.php:57
$f
$f
Definition:
fetch_windows_zones.php:31
DefaultRendererFactoryTest\test_getRendererNameFor
test_getRendererNameFor()
Definition:
DefaultRendererFactoryTest.php:19
php
DefaultRendererFactoryForTest
Definition:
DefaultRendererFactoryTest.php:5
DefaultRendererFactoryForTest\_getRendererNameFor
_getRendererNameFor($component)
Definition:
DefaultRendererFactoryTest.php:11
ILIAS\UI\Implementation\Render\DefaultRendererFactory
Definition:
DefaultRendererFactory.php:10
tests
UI
Renderer
DefaultRendererFactoryTest.php
Generated on Thu Jan 30 2025 19:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)