protected function AccessManagerTest::setupAccessChecker in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php \Drupal\Tests\Core\Access\AccessManagerTest::setupAccessChecker()
Adds a default access check service to the container and the access manager.
6 calls to AccessManagerTest::setupAccessChecker()
- AccessManagerTest::testCheck in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests \Drupal\Core\Access\AccessManager::check().
- AccessManagerTest::testCheckConjunctions in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Test \Drupal\Core\Access\AccessManager::check() with conjunctions.
- AccessManagerTest::testCheckNamedRoute in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests the checkNamedRoute method.
- AccessManagerTest::testCheckNamedRouteWithNonExistingRoute in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests checkNamedRoute given an invalid/non existing route name.
- AccessManagerTest::testCheckWithNullAccount in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests \Drupal\Core\Access\AccessManager::check() with no account specified.
File
- core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php, line 538 - Contains \Drupal\Tests\Core\Access\AccessManagerTest.
Class
- AccessManagerTest
- @coversDefaultClass \Drupal\Core\Access\AccessManager @group Access
Namespace
Drupal\Tests\Core\AccessCode
protected function setupAccessChecker() {
$access_check = new DefaultAccessCheck();
$this->container
->register('test_access_default', $access_check);
$this->checkProvider
->addCheckService('test_access_default', 'access', array(
'_access',
));
}