ILIAS  release_7 Revision v7.30-3-g800a261c036
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
5use PHPUnit\Framework\TestCase;
6
8{
9 public function __construct()
10 {
11 }
12
13 public function _getRendererNameFor($component)
14 {
15 return $this->getRendererNameFor($component);
16 }
17}
18
19class DefaultRendererFactoryTest extends TestCase
20{
21 public function test_getRendererNameFor()
22 {
24
25 $renderer_class = $f->_getRendererNameFor(new \ILIAS\UI\Implementation\Component\Symbol\Glyph\Glyph("up", "up"));
26 $expected = \ILIAS\UI\Implementation\Component\Symbol\Glyph\Renderer::class;
27 $this->assertEquals($expected, $renderer_class);
28 }
29}
An exception for terminatinating execution or to throw for unit testing.
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.