5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
9 use \ILIAS\UI\Implementation as
I;
18 return new I\Component\Divider\Factory();
25 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Divider\\Horizontal",
$f->horizontal());
31 $c =
$f->horizontal()->withLabel(
"label");
33 $this->assertEquals(
$c->getLabel(),
"label");
41 $c =
$f->horizontal();
43 $html = trim($r->render(
$c));
45 $expected_html =
"<hr/>";
55 $c =
$f->horizontal()->withLabel(
"label");
57 $html = trim($r->render(
$c));
58 $expected_html =
'<hr class="il-divider-with-label" /><h4 class="il-divider">label</h4>';
60 $this->
assertHTMLEquals(
"<div>" . $expected_html .
"</div>",
"<div>" . $html .
"</div>");
70 $html = trim($r->render(
$c));
71 $expected_html =
'<span class="glyphicon il-divider-vertical" aria-hidden="true"></span>';
73 $this->
assertHTMLEquals(
"<div>" . $expected_html .
"</div>",
"<div>" . $html .
"</div>");
test_render_horizontal_empty()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
test_implements_factory_interface()
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)
test_render_horizontal_with_label()
Test on divider implementation.