3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
33 return new I\Link\Factory();
40 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Link\\Factory",
$f);
41 $this->assertInstanceOf(
42 "ILIAS\\UI\\Component\\Link\\Standard",
43 $f->standard(
"label",
"http://www.ilias.de")
50 $c =
$f->standard(
"label",
"http://www.ilias.de");
52 $this->assertEquals(
"label",
$c->getLabel());
58 $c =
$f->standard(
"label",
"http://www.ilias.de");
60 $this->assertEquals(
"http://www.ilias.de",
$c->getAction());
68 $c =
$f->standard(
"label",
"http://www.ilias.de");
70 $html = $r->render(
$c);
73 '<a href="http://www.ilias.de">label</a>';
83 $c =
$f->standard(
"label",
"http://www.ilias.de")->withOpenInNewViewport(
true);
85 $html = $r->render(
$c);
88 '<a href="http://www.ilias.de" target="_blank" rel="noopener">label</a>';
test_render_with_new_viewport()
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Provides common functionality for UI tests.
test_implements_factory_interface()