You are here

public function GroupPermissionTest::testGetRoles in Organic groups 8

Tests getting roles.

@covers ::getApplicableRoles

@dataProvider groupPermissionProvider

Parameters

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

File

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

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetRoles(array $values) {
  $permission = new GroupPermission($values);
  $this
    ->assertEquals($values['roles'], $permission
    ->getApplicableRoles());
}