protected function AccessAwareRouterTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\RoutingCode
protected function setUp() : void {
parent::setUp();
$this->route = new Route('test');
$this->accessManager = $this
->createMock('Drupal\\Core\\Access\\AccessManagerInterface');
$this->currentUser = $this
->createMock('Drupal\\Core\\Session\\AccountInterface');
}