You are here

public function GroupContentOperationPermissionTest::testSetRestrictAccess in Organic groups 8

Tests setting the restrict access property for a group content permission.

@covers ::setRestrictAccess

@dataProvider groupContentOperationPermissionProvider

Parameters

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

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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