function DefaultHtmlRouteProviderTest::testGetAddPageRoute

@covers ::getAddPageRoute
@dataProvider providerTestGetAddPageRoute

File

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

Class

DefaultHtmlRouteProviderTest
@coversDefaultClass \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider[[api-linebreak]] @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);
}

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