3 declare(strict_types=1);
11 require_once(
'IliasMocks.php');
12 require_once(__DIR__ .
"/../../../../components/ILIAS/UI/tests/Base.php");
38 $html = $this->normalizeHTML($html);
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" dir="rtl"> ' .
108 ' <span class="breadcrumb-crumb" dir="ltr"> ' .
109 ' <a href="https://ilias.de/somepath?lsocmd=cmd&lsov=1">item 1</a>' .
117 $this->assertEquals($expected, $html);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...