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();
45 $expected_html =
"<hr/>";
55 $c =
$f->horizontal()->withLabel(
"label");
58 $expected_html =
'<hr class="il-divider-with-label" /><h6 class="il-divider">label</h6>';
71 $expected_html =
'<span class="glyphicon il-divider-vertical" aria-hidden="true"></span>';
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.