public function UrlGeneratorTest::testAliasGenerationWithOptions in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testAliasGenerationWithOptions()
- 9 core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testAliasGenerationWithOptions()
Confirms that generated routes will have aliased paths with options.
@dataProvider providerTestAliasGenerationWithOptions
File
- core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php, line 339
Class
- UrlGeneratorTest
- Confirm that the UrlGenerator is functioning properly.
Namespace
Drupal\Tests\Core\RoutingCode
public function testAliasGenerationWithOptions($route_name, $route_parameters, $options, $expected) {
$this
->assertGenerateFromRoute($route_name, $route_parameters, $options, $expected, (new BubbleableMetadata())
->setCacheMaxAge(Cache::PERMANENT));
}