You are here

public function FieldPermissionsCommentTest::testFieldPermissionComment in Field Permissions 8

Same name and namespace in other branches
  1. 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\Functional

Code

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();
}