You are here

public function GroupContentOperationPermissionTest::testGetDescription in Organic groups 8

Tests getting the description property from a group content permission.

@covers ::getDescription

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetDescription(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['description'], $permission
    ->getDescription());
}