protected function WebformBreadcrumbBuilderTest::assertLinks in Webform 8.5
Same name and namespace in other branches
- 6.x tests/src/Kernel/Breadcrumb/WebformBreadcrumbBuilderTest.php \Drupal\Tests\webform\Kernel\Breadcrumb\WebformBreadcrumbBuilderTest::assertLinks()
Assert breadcrumb builder generates links for specified route match.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: A mocked route match.
array $links: An array of breadcrumb links.
10 calls to WebformBreadcrumbBuilderTest::assertLinks()
- WebformBreadcrumbBuilderTest::testBuildElements in tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php - Test build element breadcrumbs.
- WebformBreadcrumbBuilderTest::testBuildHandlers in tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php - Test build handler breadcrumbs.
- WebformBreadcrumbBuilderTest::testBuildSourceEntity in tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php - Test build source entity breadcrumbs.
- WebformBreadcrumbBuilderTest::testBuildSourceEntityResults in tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php - Test build source entity submissions breadcrumbs.
- WebformBreadcrumbBuilderTest::testBuildSourceEntitySubmissions in tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php - Test build source entity submissions breadcrumbs.
File
- tests/
src/ Kernel/ Breadcrumb/ WebformBreadcrumbBuilderTest.php, line 466
Class
- WebformBreadcrumbBuilderTest
- Test webform breadcrumb builder.
Namespace
Drupal\Tests\webform\Kernel\BreadcrumbCode
protected function assertLinks(RouteMatchInterface $route_match, array $links) {
$this->breadcrumbBuilder
->applies($route_match);
$breadcrumb = $this->breadcrumbBuilder
->build($route_match);
$this
->assertEquals($links, $breadcrumb
->getLinks());
}