8 require_once(
'IliasMocks.php');
9 require_once(__DIR__ .
"/../../../tests/UI/Base.php");
19 return preg_replace(
'!\s+!',
' ', $html);
24 $cb = $this->createMock(LSControlBuilder::class);
30 $this->assertInstanceOf(LSLocatorBuilder::class, $this->lb);
40 $this->assertCount(3, $this->lb->getItems());
50 [
'label' =>
'item 1',
54 [
'label' =>
'item 2',
60 $this->assertEquals($expected, $this->lb->getItems());
65 $cb = $this->lb->end();
66 $this->assertInstanceOf(ControlBuilder::class, $cb);
72 $uri = $data_factory->uri(
'http://ilias.de/somepath');
74 $ui_factory = $this->mockUIFactory();
81 $out = $gui->withItems($items)->getComponent();
83 $this->assertInstanceOf(Breadcrumbs::class,
$out);
86 '<nav role="navigation" aria-label="breadcrumbs"> ' .
87 ' <ul class="breadcrumb"> ' .
88 ' <li class="crumb"> ' .
89 ' <a href="http://ilias.de/somepath?lsocmd=cmd&lsov=1" >item 1</a>' .
97 $this->assertEquals($expected,
$html);
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.