function MetadataBubblingUrlGeneratorTest::setUpMockRouteProcessorManager
Reinitializes the route processor manager as a mock object.
Overrides UrlGeneratorTest::setUpMockRouteProcessorManager
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ MetadataBubblingUrlGeneratorTest.php, line 57
Class
- MetadataBubblingUrlGeneratorTest
- Confirm that the MetadataBubblingUrlGenerator is functioning properly.
Namespace
Drupal\Tests\Core\RenderCode
protected function setUpMockRouteProcessorManager() : void {
$this->routeProcessorManager = $this->createMock(RouteProcessorManager::class);
$reflection = new \ReflectionProperty($this->urlGenerator, 'routeProcessor');
$reflection->setValue($this->urlGenerator, $this->routeProcessorManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.