You are here

public function GroupPermissionTest::testGet in Organic groups 8

Tests getting a property of a permission.

@covers ::get

@dataProvider groupPermissionProvider

Parameters

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

File

tests/src/Unit/GroupPermissionTest.php, line 60

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

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