function UrlGeneratorTest::setUpMockRouteProcessorManager
Reinitializes the route processor manager as a mock object.
9 calls to UrlGeneratorTest::setUpMockRouteProcessorManager()
- UrlGeneratorTest::testAbsoluteURLGeneration in core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php - Confirms that absolute URLs work with generated routes.
- UrlGeneratorTest::testAbsoluteURLGenerationUsingInterfaceConstants in core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php - Confirms that absolute URLs work with generated routes using interface constants.
- UrlGeneratorTest::testAliasGeneration in core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php - Confirms that generated routes will have aliased paths.
- UrlGeneratorTest::testAliasGenerationUsingInterfaceConstants in core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php - Confirms that generated routes will have aliased paths using interface constants.
- UrlGeneratorTest::testAliasGenerationWithParameters in core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php - Confirms that generated routes will have aliased paths.
1 method overrides UrlGeneratorTest::setUpMockRouteProcessorManager()
- MetadataBubblingUrlGeneratorTest::setUpMockRouteProcessorManager in core/
tests/ Drupal/ Tests/ Core/ Render/ MetadataBubblingUrlGeneratorTest.php - Reinitializes the route processor manager as a mock object.
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php, line 185
Class
- UrlGeneratorTest
- Confirm that the UrlGenerator is functioning properly.
Namespace
Drupal\Tests\Core\RoutingCode
protected function setUpMockRouteProcessorManager() : void {
$this->routeProcessorManager = $this->createMock(RouteProcessorManager::class);
$reflection = new \ReflectionProperty($this->generator, 'routeProcessor');
$reflection->setValue($this->generator, $this->routeProcessorManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.