You are here

public function GroupContentOperationPermissionTest::testSetTitle in Organic groups 8

Tests setting the title property for a group content permission.

@covers ::setTitle

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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