protected function FieldPermissionsNodeTest::assertNodeFieldVisible in Field Permissions 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FieldPermissionsNodeTest.php \Drupal\Tests\field_permissions\Functional\FieldPermissionsNodeTest::assertNodeFieldVisible()
Asserts that the body field is visible.
4 calls to FieldPermissionsNodeTest::assertNodeFieldVisible()
- FieldPermissionsNodeTest::checkChengeToPrivateField in tests/
src/ Functional/ FieldPermissionsNodeTest.php - Test PUBLIC - PRIVATE EDIT - VIEW.
- 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 97
Class
- FieldPermissionsNodeTest
- Test field permissions on nodes.
Namespace
Drupal\Tests\field_permissions\FunctionalCode
protected function assertNodeFieldVisible() {
$field_value = $this->node
->getFields()['body']
->getValue();
$this
->drupalGet('node/' . $this->node
->id());
$this
->assertSession()
->pageTextContains($field_value[0]['value']);
}