You are here

public function GroupContentOperationPermissionTest::testSetDescription in Organic groups 8

Tests setting the description property for a group content permission.

@covers ::setDescription

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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