ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }
Class Factory.
Class BaseForm.
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.