You are here

public function GroupContentOperationPermissionTest::testGetRestrictAccess in Organic groups 8

Tests getting the restrict access property from a group content permission.

@covers ::getRestrictAccess

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetRestrictAccess(array $values) {
  $permission = new GroupContentOperationPermission($values);
  $this
    ->assertEquals($values['restrict access'], $permission
    ->getRestrictAccess());
}