function RoutePreloaderTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RoutePreloaderTest.php, line 44
Class
- RoutePreloaderTest
- @coversDefaultClass \Drupal\Core\Routing\RoutePreloader[[api-linebreak]] @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
protected function setUp() : void {
parent::setUp();
$this->routeProvider = $this->createMock('Drupal\\Core\\Routing\\PreloadableRouteProviderInterface');
$this->state = $this->createMock('\\Drupal\\Core\\State\\StateInterface');
$this->preloader = new RoutePreloader($this->routeProvider, $this->state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.