2b: Admin page access for admin users
Ensure that users with the `access administration pages` permission can access the site’s administration pages.
This commit is contained in:
parent
7e0a0c3762
commit
9df597c965
1 changed files with 13 additions and 0 deletions
|
@ -25,4 +25,17 @@ class MyModuleTest extends BrowserTestBase {
|
|||
$this->assertResponse(Response::HTTP_FORBIDDEN);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function the_admin_page_is_accessible_by_admin_users() {
|
||||
$adminUser = $this->createUser([
|
||||
'access administration pages',
|
||||
]);
|
||||
|
||||
$this->drupalLogin($adminUser);
|
||||
|
||||
$this->drupalGet('admin');
|
||||
|
||||
$this->assertResponse(Response::HTTP_OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue