You are here

public function FieldPermissionsNodeTest::testNodeFieldPermissions 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::testNodeFieldPermissions()

Test field permissions on nodes.

File

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

Class

FieldPermissionsNodeTest
Test field permissions on nodes.

Namespace

Drupal\Tests\field_permissions\Functional

Code

public function testNodeFieldPermissions() {

  // These are all run within a single test method to avoid unnecessary site
  // installs.
  $this
    ->checkPermissionPage();
  $this
    ->checkFieldPermissionConfigurationEdit();
  $this
    ->checkInitAddNode();
  $this
    ->checkChengeToPrivateField();
  $this
    ->checkViewOwnField();
  $this
    ->checkViewEditOwnField();
  $this
    ->checkViewEditAllField();
}