function DefaultHtmlRouteProviderTest::testGetAddPageRoute
Tests get add page route.
@legacy-covers ::getAddPageRoute
Attributes
#[DataProvider('providerTestGetAddPageRoute')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Routing/ DefaultHtmlRouteProviderTest.php, line 69
Class
Namespace
Drupal\Tests\Core\Entity\RoutingCode
public function testGetAddPageRoute(?Route $expected, EntityTypeInterface $entity_type) : void {
$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.