You are here

public function GroupContentOperationPermissionTest::testGetDefaultRoles in Organic groups 8

Tests getting the default roles from a group content permission.

@covers ::getDefaultRoles

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetDefaultRoles(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['default roles'], $permission
    ->getDefaultRoles());
}