3 declare(strict_types=1);
11 require_once(
'IliasMocks.php');
12 require_once(__DIR__ .
"/../../../tests/UI/Base.php");
39 return preg_replace(
'!\s+!',
' ', $html);
44 $cb = $this->createMock(LSControlBuilder::class);
50 $this->assertInstanceOf(LSLocatorBuilder::class, $this->lb);
60 $this->assertCount(3, $this->lb->getItems());
70 [
'label' =>
'item 1',
74 [
'label' =>
'item 2',
80 $this->assertEquals($expected, $this->lb->getItems());
85 $cb = $this->lb->end();
86 $this->assertInstanceOf(ControlBuilder::class, $cb);
92 $uri = $data_factory->uri(
'https://ilias.de/somepath');
94 $ui_factory = $this->mockUIFactory();
101 $out = $gui->withItems($items)->getComponent();
103 $this->assertInstanceOf(Breadcrumbs::class,
$out);
106 '<nav aria-label="breadcrumbs_aria_label" class="breadcrumb_wrapper"> ' .
107 ' <div class="breadcrumb"> ' .
108 ' <span class="crumb"> ' .
109 ' <a href="https://ilias.de/somepath?lsocmd=cmd&lsov=1" >item 1</a>' .
117 $this->assertEquals($expected, $html);
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
Provides common functionality for UI tests.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
normalizeHTML(string $html)