You are here

public function DefaultHtmlRouteProviderTest::testGetAddPageRoute in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php \Drupal\Tests\Core\Entity\Routing\DefaultHtmlRouteProviderTest::testGetAddPageRoute()

@covers ::getAddPageRoute @dataProvider providerTestGetAddPageRoute

File

core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php, line 66
Contains \Drupal\Tests\Core\Entity\Routing\DefaultHtmlRouteProviderTest.

Class

DefaultHtmlRouteProviderTest
@coversDefaultClass \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider @group Entity

Namespace

Drupal\Tests\Core\Entity\Routing

Code

public function testGetAddPageRoute(Route $expected = NULL, EntityTypeInterface $entity_type) {
  $route = $this->routeProvider
    ->getAddPageRoute($entity_type);
  $this
    ->assertEquals($expected, $route);
}