You are here

public function NodeRevisionsAutocleanTest::testAdminConfigAdminAccess in Node Revisions Autoclean 8

Test permissions admin.

File

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

Class

NodeRevisionsAutocleanTest
Class NodeRevisionsAutocleanTest.

Namespace

Drupal\Tests\node_revisions_autoclean\Functional

Code

public function testAdminConfigAdminAccess() {
  $assert = $this
    ->assertSession();
  $user = $this
    ->drupalCreateUser([
    'configure revisions autoclean settings',
  ]);
  $this
    ->drupalLogin($user);
  $this
    ->drupalGet('/admin/config/content/revisions-autoclean');
  $assert
    ->statusCodeEquals(200);
}