public function FieldPermissionsCommentTest::testFieldPermissionComment in Field Permissions 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FieldPermissionsCommentTest.php \Drupal\Tests\field_permissions\Functional\FieldPermissionsCommentTest::testFieldPermissionComment()
Test field permissions on comments.
File
- tests/
src/ Functional/ FieldPermissionsCommentTest.php, line 69
Class
- FieldPermissionsCommentTest
- Test field permissions with the comment module and fields.
Namespace
Drupal\Tests\field_permissions\FunctionalCode
public function testFieldPermissionComment() {
// These are all run within a single test method to avoid unnecessary site
// installs.
$this
->addCommentField();
$this
->checkBaseCommentFieldFunctionality();
$this
->checkPrivateCommentField();
$this
->checkPrivateFieldPermission();
$this
->checkCustomCommentField();
}