19 declare(strict_types=1);
    21 require_once(
"libs/composer/vendor/autoload.php");
    22 require_once(__DIR__ . 
"/../../Base.php");
    35             public function breadcrumbs(array $crumbs): C\Breadcrumbs\Breadcrumbs
    37                 return new I\Component\Breadcrumbs\Breadcrumbs($crumbs);
    46         $this->assertInstanceOf(
"ILIAS\\UI\\Factory", 
$f);
    47         $this->assertInstanceOf(
    48             "ILIAS\\UI\\Component\\Breadcrumbs\\Breadcrumbs",
    49             $f->breadcrumbs(array())
    61         $c = 
$f->breadcrumbs($crumbs);
    62         $this->assertEquals($crumbs, 
$c->getItems());
    68         $crumb = 
new I\Component\Link\Standard(
"label2", 
'#');
    70         $c = 
$f->Breadcrumbs(array())
    71             ->withAppendedItem($crumb);
    72         $this->assertEquals(array($crumb), 
$c->getItems());
    84         $c = 
$f->Breadcrumbs($crumbs);
    87         $expected = 
'<nav aria-label="breadcrumbs_aria_label" class="breadcrumb_wrapper">'    88             . 
' <div class="breadcrumb">'    89             . 
'         <span class="crumb">'    90             . 
'                 <a href="#">label</a>'    92             . 
'         <span class="crumb">'    93             . 
'                 <a href="#">label2</a>' 
Tests for the Breadcrumbs-component. 
 
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
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...
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
Provides common functionality for UI tests. 
 
testImplementsFactoryInterface()
 
normalizeHTML(string $html)