You are here

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

Overrides FieldPermissionsTestBase::setUp

File

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

Class

FieldPermissionsNodeTest
Test field permissions on nodes.

Namespace

Drupal\Tests\field_permissions\Functional

Code

public function setUp() {
  parent::setUp();

  // Grant the web user permission to administer node fields.
  $this->webUserRole
    ->grantPermission('administer content types')
    ->grantPermission('administer node fields')
    ->save();
}