You are here

public function GroupContentOperationPermissionTest::testSet in Organic groups 8

Tests setting a property for a group content permission.

@covers ::set

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testSet(array $values) {
  $permission = new GroupContentOperationPermission();
  foreach ($values as $property => $value) {
    $permission
      ->set($property, $value);
    $this
      ->assertEquals($value, $permission
      ->get($property));
  }
}