You are here

public function AccessAwareRouterTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 52
Contains \Drupal\Tests\Core\Routing\AccessAwareRouterTest.

Class

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

Namespace

Drupal\Tests\Core\Routing

Code

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