You are here

public function GroupContentOperationPermissionTest::testSetName in Organic groups 8

Tests setting the name property for a group content permission.

@covers ::setName

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testSetName(array $values) {
  $permission = new GroupContentOperationPermission();
  $permission
    ->setName($values['name']);
  $this
    ->assertEquals($values['name'], $permission
    ->get('name'));
}