You are here

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\Form

Code

public function testRouteAccessGranted() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}