ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ComponentRendererLoaderHelperTest.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 
5 require_once(__DIR__ . "/TestComponent.php");
6 
8 {
9  use \ILIAS\UI\Implementation\Render\LoaderHelper;
10 
11  public function test_getContextNames()
12  {
13  $c1 = new \ILIAS\UI\Component\Test\TestComponent("foo");
14  $c2 = new \ILIAS\UI\Implementation\Component\Glyph\Glyph("up", "up");
15  $names = $this->getContextNames([$c1, $c2]);
16  $expected = ["TestComponentTest", "GlyphGlyph"];
17  $this->assertEquals($expected, $names);
18  }
19 }