You are here

protected function FieldPermissionsNodeTest::checkPermissionPage in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/FieldPermissionsNodeTest.php \Drupal\Tests\field_permissions\Functional\FieldPermissionsNodeTest::checkPermissionPage()

Test permissions page.

1 call to FieldPermissionsNodeTest::checkPermissionPage()
FieldPermissionsNodeTest::testNodeFieldPermissions in tests/src/Functional/FieldPermissionsNodeTest.php
Test field permissions on nodes.

File

tests/src/Functional/FieldPermissionsNodeTest.php, line 151

Class

FieldPermissionsNodeTest
Test field permissions on nodes.

Namespace

Drupal\Tests\field_permissions\Functional

Code

protected function checkPermissionPage() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet(Url::fromRoute('user.admin_permissions'));
  $this
    ->assertSession()
    ->pageTextContains('Access other users private fields');
  $this
    ->assertSession()
    ->pageTextContains('Administer field permissions');
  $this
    ->drupalLogout();
}