You are here

public function SimpleRecaptchaWebformTestBase::testWebformAdminPage in Simple Google reCAPTCHA 8

Verify that webform admin pages are accessible.

File

modules/simple_recaptcha_webform/tests/src/Functional/SimpleRecaptchaWebformTestBase.php, line 58

Class

SimpleRecaptchaWebformTestBase
Test base for simple_recaptcha_webform module.

Namespace

Drupal\Tests\simple_recaptcha_webform\Functional

Code

public function testWebformAdminPage() {

  // Permissions / config page existance check.
  $this
    ->drupalLogin($this->user);
  $this
    ->drupalGet('/admin/structure/webform');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->drupalLogout();
}