You are here

public function GroupPermissionTest::testGetRestrictAccess in Organic groups 8

Tests getting the restrict access property of a permission.

@covers ::getRestrictAccess

@dataProvider groupPermissionProvider

Parameters

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

File

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

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

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