You are here

protected function RoutePreloaderTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php \Drupal\Tests\Core\Routing\RoutePreloaderTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php, line 54
Contains \Drupal\Tests\Core\Routing\RoutePreloaderTest.

Class

RoutePreloaderTest
@coversDefaultClass \Drupal\Core\Routing\RoutePreloader @group Routing

Namespace

Drupal\Tests\Core\Routing

Code

protected function setUp() {
  $this->routeProvider = $this
    ->getMock('Drupal\\Core\\Routing\\PreloadableRouteProviderInterface');
  $this->state = $this
    ->getMock('\\Drupal\\Core\\State\\StateInterface');
  $this->cache = $this
    ->getMock('Drupal\\Core\\Cache\\CacheBackendInterface');
  $this->preloader = new RoutePreloader($this->routeProvider, $this->state, $this->cache);
}