function LayoutBuilderBreadcrumbAlterTest::testBreadcrumbAlterNullRouteMatch

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderBreadcrumbAlterTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderBreadcrumbAlterTest::testBreadcrumbAlterNullRouteMatch()
  2. 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 29

Class

LayoutBuilderBreadcrumbAlterTest
Tests <a href="/api/drupal/core%21modules%21layout_builder%21layout_builder.module/function/layout_builder_system_breadcrumb_alter/11.x" title="Implements hook_system_breadcrumb_alter()." class="local">layout_builder_system_breadcrumb_alter</a>().

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function testBreadcrumbAlterNullRouteMatch() : void {
    $breadcrumb = new Breadcrumb();
    $route_match = new NullRouteMatch();
    layout_builder_system_breadcrumb_alter($breadcrumb, $route_match, []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.