You are here

protected function AccessAwareRouterTest::setUp in Drupal 8

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

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php, line 48

Class

AccessAwareRouterTest
@coversDefaultClass \Drupal\Core\Routing\AccessAwareRouter @group Routing

Namespace

Drupal\Tests\Core\Routing

Code

protected function setUp() {
  parent::setUp();
  $this->route = new Route('test');
  $this->accessManager = $this
    ->createMock('Drupal\\Core\\Access\\AccessManagerInterface');
  $this->currentUser = $this
    ->createMock('Drupal\\Core\\Session\\AccountInterface');
}