You are here

protected function CustomAccessCheckTest::setUp in Zircon Profile 8

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

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php, line 45
Contains \Drupal\Tests\Core\Access\CustomAccessCheckTest.

Class

CustomAccessCheckTest
@coversDefaultClass \Drupal\Core\Access\CustomAccessCheck @group Access

Namespace

Drupal\Tests\Core\Access

Code

protected function setUp() {
  parent::setUp();
  $this->controllerResolver = $this
    ->getMock('Drupal\\Core\\Controller\\ControllerResolverInterface');
  $this->argumentsResolverFactory = $this
    ->getMock('Drupal\\Core\\Access\\AccessArgumentsResolverFactoryInterface');
  $this->accessChecker = new CustomAccessCheck($this->controllerResolver, $this->argumentsResolverFactory);
}