ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DefaultRendererFactoryTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
25
27{
28 public function __construct()
29 {
30 }
31
32 public function _getRendererNameFor(\ILIAS\UI\Component\Component $component): string
33 {
34 return $this->getRendererNameFor($component);
35 }
36}
37
38class DefaultRendererFactoryTest extends TestCase
39{
40 public function testGetRendererNameFor(): void
41 {
43
44 $renderer_class = $f->_getRendererNameFor(new Glyph("up", "up"));
45 $expected = Renderer::class;
46 $this->assertEquals($expected, $renderer_class);
47 }
48}
_getRendererNameFor(\ILIAS\UI\Component\Component $component)
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.