You are here

public function BreadcrumbTest::testAppliesWithNoEntityInRouteMatch in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_breadcrumb/tests/src/Kernel/BreadcrumbTest.php \Drupal\Tests\entity_hierarchy_breadcrumb\Kernel\BreadcrumbTest::testAppliesWithNoEntityInRouteMatch()

Tests applies on non entity route.

File

modules/entity_hierarchy_breadcrumb/tests/src/Kernel/BreadcrumbTest.php, line 86

Class

BreadcrumbTest
Tests for breadcrumbs built of entity hierarchy fields.

Namespace

Drupal\Tests\entity_hierarchy_breadcrumb\Kernel

Code

public function testAppliesWithNoEntityInRouteMatch() {
  $route_match = new RouteMatch('test', $this->testRoute);
  $this
    ->assertFalse($this->breadcrumbBuilder
    ->applies($route_match));
}