protected function AccessTest::validateAccessToAdminRoutes in Apigee Edge 8
Checks whether the user has access to admin routes.
Parameters
bool $user_has_access: TRUE if the user has access to admin routes, else FALSE.
1 call to AccessTest::validateAccessToAdminRoutes()
- AccessTest::teamAccessTest in modules/
apigee_edge_teams/ tests/ src/ Functional/ AccessTest.php - Tests team, team membership level and admin permissions.
File
- modules/
apigee_edge_teams/ tests/ src/ Functional/ AccessTest.php, line 622
Class
- AccessTest
- Teams module access test.
Namespace
Drupal\Tests\apigee_edge_teams\FunctionalCode
protected function validateAccessToAdminRoutes(bool $user_has_access) {
foreach (self::ADMIN_ROUTES as $route_name) {
$this
->validateAccess(Url::fromRoute($route_name), $user_has_access ? Response::HTTP_OK : Response::HTTP_FORBIDDEN);
}
}