function LayoutBuilderBreadcrumbAlterTest::testBreadcrumbAlterNullRouteMatch
Same name in other branches
- 9 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderBreadcrumbAlterTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderBreadcrumbAlterTest::testBreadcrumbAlterNullRouteMatch()
- 10 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderBreadcrumbAlterTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderBreadcrumbAlterTest::testBreadcrumbAlterNullRouteMatch()
Check that there are no errors when alter called with null route match.
File
-
core/
modules/ layout_builder/ tests/ src/ Kernel/ LayoutBuilderBreadcrumbAlterTest.php, line 30
Class
Namespace
Drupal\Tests\layout_builder\KernelCode
public function testBreadcrumbAlterNullRouteMatch() : void {
$breadcrumb = new Breadcrumb();
$route_match = new NullRouteMatch();
$layoutBuilderSystemBreadcrumbAlter = new LayoutBuilderHooks();
$layoutBuilderSystemBreadcrumbAlter->systemBreadcrumbAlter($breadcrumb, $route_match, []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.