protected function FieldPermissionsNodeTest::assertNodeFieldEditNoAccess in Field Permissions 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FieldPermissionsNodeTest.php \Drupal\Tests\field_permissions\Functional\FieldPermissionsNodeTest::assertNodeFieldEditNoAccess()
Asserts that the node field is not editable.
3 calls to FieldPermissionsNodeTest::assertNodeFieldEditNoAccess()
- 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.
- FieldPermissionsNodeTest::checkViewOwnField in tests/
src/ Functional/ FieldPermissionsNodeTest.php - Test PUBLIC - view own field.
File
- tests/
src/ Functional/ FieldPermissionsNodeTest.php, line 125
Class
- FieldPermissionsNodeTest
- Test field permissions on nodes.
Namespace
Drupal\Tests\field_permissions\FunctionalCode
protected function assertNodeFieldEditNoAccess() {
$this
->drupalGet('node/' . $this->node
->id() . '/edit');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('Title');
$this
->assertSession()
->pageTextNotContains('Body');
}