You are here

public function GroupContentOperationPermissionTest::testSetOperation in Organic groups 8

Tests setting the operation from a group content permission.

@covers ::setOperation

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testSetOperation(array $values) {
  $permission = new GroupContentOperationPermission();
  $permission
    ->setOperation($values['operation']);
  $this
    ->assertEquals($values['operation'], $permission
    ->get('operation'));
}