ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ComponentRendererLoaderHelperTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22use ILIAS\UI\Implementation\Render\LoaderHelper;
25
26require_once(__DIR__ . "/TestComponent.php");
27
29{
30 use LoaderHelper;
31
32 public function testGetContextNames(): void
33 {
34 $c1 = new TestComponent("foo");
35 $c2 = new Glyph("up", "up");
36 $names = $this->getContextNames([$c1, $c2]);
37 $expected = ["TestComponentTest", "GlyphGlyphSymbol"];
38 $this->assertEquals($expected, $names);
39 }
40}