function CustomAccessCheckTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\CustomAccessCheckTest::setUp()
- 8.9.x core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\CustomAccessCheckTest::setUp()
- 10 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 46
Class
- CustomAccessCheckTest
- @coversDefaultClass \Drupal\Core\Access\CustomAccessCheck @group Access
Namespace
Drupal\Tests\Core\AccessCode
protected function setUp() : void {
parent::setUp();
$this->callableResolver = $this->createMock(CallableResolver::class);
$this->argumentsResolverFactory = $this->createMock('Drupal\\Core\\Access\\AccessArgumentsResolverFactoryInterface');
$this->accessChecker = new CustomAccessCheck($this->callableResolver, $this->argumentsResolverFactory);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.