You are here

protected function FieldPermissionsNodeTest::assertNodeFieldEditAccess 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::assertNodeFieldEditAccess()

Asserts that the node field is editable.

2 calls to FieldPermissionsNodeTest::assertNodeFieldEditAccess()
FieldPermissionsNodeTest::checkViewEditAllField in tests/src/Functional/FieldPermissionsNodeTest.php
Test - view edit all field.
FieldPermissionsNodeTest::checkViewEditOwnField in tests/src/Functional/FieldPermissionsNodeTest.php
Test PUBLIC - view own field.

File

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

Class

FieldPermissionsNodeTest
Test field permissions on nodes.

Namespace

Drupal\Tests\field_permissions\Functional

Code

protected function assertNodeFieldEditAccess() {
  $this
    ->drupalGet('node/' . $this->node
    ->id() . '/edit');
  $this
    ->assertSession()
    ->pageTextContains('Title');
  $this
    ->assertSession()
    ->pageTextContains('Body');
}