ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
6{
7 public function __construct()
8 {
9 }
10
11 public function _getRendererNameFor($component)
12 {
13 return $this->getRendererNameFor($component);
14 }
15}
16
18{
19 public function test_getRendererNameFor()
20 {
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}
An exception for terminatinating execution or to throw for unit testing.
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
Class BaseForm.
Class Factory.