2a: Admin page access for anonymous users
Ensure that anonymous users cannot access the site’s administration pages.
This commit is contained in:
parent
fd921d3e4c
commit
7e0a0c3762
|
@ -18,4 +18,11 @@ class MyModuleTest extends BrowserTestBase {
|
|||
$this->assertResponse(Response::HTTP_OK);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function the_admin_page_is_not_accessible_to_anonymous_users() {
|
||||
$this->drupalGet('admin');
|
||||
|
||||
$this->assertResponse(Response::HTTP_FORBIDDEN);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue