You are here

public function SettingsFormTest::testNoAccess in Node Option Premium 8

Tests that an anonymous user cannot access the settings page.

File

tests/src/Functional/Form/SettingsFormTest.php, line 36

Class

SettingsFormTest
Tests configuring the module.

Namespace

Drupal\Tests\nopremium\Functional\Form

Code

public function testNoAccess() {
  $this
    ->drupalGet('/admin/config/content/nopremium');
  $this
    ->assertSession()
    ->statusCodeEquals(403);
}