public function BreadcrumbTest::testAppliesWithNoEntityInRouteMatch in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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\KernelCode
public function testAppliesWithNoEntityInRouteMatch() {
$route_match = new RouteMatch('test', $this->testRoute);
$this
->assertFalse($this->breadcrumbBuilder
->applies($route_match));
}