5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
21 return new \ILIAS\UI\Implementation\Factory(
22 $this->createMock(
C\Counter\Factory::class),
23 $this->createMock(
C\Glyph\Factory::class),
24 $this->createMock(
C\
Button\Factory::class),
25 $this->createMock(
C\Listing\Factory::class),
26 $this->createMock(
C\Image\Factory::class),
27 $this->createMock(
C\Panel\Factory::class),
28 $this->createMock(
C\Modal\Factory::class),
29 $this->createMock(
C\Dropzone\Factory::class),
30 $this->createMock(
C\Popover\Factory::class),
31 $this->createMock(
C\Divider\Factory::class),
32 $this->createMock(
C\Link\Factory::class),
33 $this->createMock(
C\Dropdown\Factory::class),
34 $this->createMock(
C\Item\Factory::class),
35 $this->createMock(
C\Icon\Factory::class),
36 $this->createMock(
C\ViewControl\Factory::class),
37 $this->createMock(
C\Chart\Factory::class),
38 $this->createMock(
C\Input\Factory::class),
39 $this->createMock(
C\Table\Factory::class),
40 $this->createMock(
C\MessageBox\Factory::class),
41 $this->createMock(
C\
Card\Factory::class)
49 $this->assertInstanceOf(
"ILIAS\\UI\\Factory",
$f);
50 $this->assertInstanceOf(
51 "ILIAS\\UI\\Component\\Legacy\\Legacy",
52 $f->legacy(
"Legacy Content")
59 $g =
$f->legacy(
"Legacy Content");
61 $this->assertEquals($g->getContent(),
"Legacy Content");
70 $g =
$f->legacy(
"Legacy Content");
72 $this->assertEquals(
$r->render($g),
"Legacy Content");
test_implements_factory_interface()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.
Test on button implementation.