['label' => 'Home', 'url' => '#'],
'links' => [
['label' => 'Library', 'url' => '#'],
['label' => 'Data']
]
]);
$expected = <<
- Home
- Library
- Data
HTML;
$this->assertEqualsWithoutLE($expected, $out);
}
public function testRenderWithoutHomeLink()
{
Breadcrumbs::$counter = 0;
$out = Breadcrumbs::widget([
'homeLink' => false,
'links' => [
['label' => 'Library', 'url' => '#'],
['label' => 'Data']
]
]);
$expected = <<- Library
- Data
HTML;
$this->assertEqualsWithoutLE($expected, $out);
}
}