You are here

public function NodeRevisionsAutocleanTest::testAdminConfigAnonymousAccess in Node Revisions Autoclean 8

Tests permissions anonymous.

File

tests/src/Functional/NodeRevisionsAutocleanTest.php, line 156

Class

NodeRevisionsAutocleanTest
Class NodeRevisionsAutocleanTest.

Namespace

Drupal\Tests\node_revisions_autoclean\Functional

Code

public function testAdminConfigAnonymousAccess() {
  $assert = $this
    ->assertSession();
  $user = $this
    ->drupalCreateUser();
  $this
    ->drupalLogin($user);
  $this
    ->drupalGet('/admin/config/content/revisions-autoclean');
  $assert
    ->statusCodeEquals(403);
}