You are here

public function GroupContentOperationPermissionTest::testGetOperation in Organic groups 8

Tests getting the operation from a group content permission.

@covers ::getOperation

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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