public function FormTestBase::testRouteAccessGranted in Purge 8.3
Tests that the form route isn't accessible anonymously.
File
- modules/
purge_ui/ tests/ src/ Functional/ Form/ FormTestBase.php, line 261
Class
- FormTestBase
- Testbase for purge_ui forms.
Namespace
Drupal\Tests\purge_ui\Functional\FormCode
public function testRouteAccessGranted() : void {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this
->getPath());
$this
->assertSession()
->statusCodeEquals(200);
}