You are here

public function GroupPermissionTest::testGetDescription in Organic groups 8

Tests getting the description property of a permission.

@covers ::getDescription

@dataProvider groupPermissionProvider

Parameters

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

File

tests/src/Unit/GroupPermissionTest.php, line 157

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

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