You are here

public function GroupContentOperationPermissionTest::testGetTitle in Organic groups 8

Tests getting the title property from a group content permission.

@covers ::getTitle

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetTitle(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['title'], $permission
    ->getTitle());
}