5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
17 return new \ILIAS\UI\Implementation\Component\Link\Factory();
24 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Link\\Factory",
$f);
25 $this->assertInstanceOf(
26 "ILIAS\\UI\\Component\\Link\\Standard",
27 $f->standard(
"label",
"http://www.ilias.de")
34 $c =
$f->standard(
"label",
"http://www.ilias.de");
36 $this->assertEquals(
$c->getLabel(),
"label");
42 $c =
$f->standard(
"label",
"http://www.ilias.de");
44 $this->assertEquals(
$c->getAction(),
"http://www.ilias.de");
52 $c =
$f->standard(
"label",
"http://www.ilias.de");
57 '<a href="http://www.ilias.de">label</a>';
67 $c =
$f->standard(
"label",
"http://www.ilias.de")->withOpenInNewViewport(
true);
72 '<a href="http://www.ilias.de" target="_blank" rel="noopener">label</a>';
test_render_with_new_viewport()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Test on link implementation.
Provides common functionality for UI tests.
test_implements_factory_interface()
assertHTMLEquals($expected_html_as_string, $html_as_string)