You are here

public function GroupContentOperationPermissionTest::testGetEntityType in Organic groups 8

Tests getting the entity type for the group content permission.

@covers ::getEntityType

@dataProvider groupContentOperationPermissionProvider

Parameters

array $values: Associative array of test values, keyed by property name.

File

tests/src/Unit/GroupContentOperationPermissionTest.php, line 29

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetEntityType(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['entity type'], $permission
    ->getEntityType());
}