You are here

protected function CustomAccessCheckTest::setUp in Drupal 8

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php, line 50
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
    ->createMock('Drupal\\Core\\Controller\\ControllerResolverInterface');
  $this->argumentsResolverFactory = $this
    ->createMock('Drupal\\Core\\Access\\AccessArgumentsResolverFactoryInterface');
  $this->accessChecker = new CustomAccessCheck($this->controllerResolver, $this->argumentsResolverFactory);
}