public function GroupPermissionTest::testSetRestrictAccess in Organic groups 8
Tests setting the restrict access property of a permission.
@covers ::setRestrictAccess
@dataProvider groupPermissionProvider
Parameters
array $values: Associative array of test values, keyed by property name.
File
- tests/
src/ Unit/ GroupPermissionTest.php, line 234
Class
- GroupPermissionTest
- Group permissions tests.
Namespace
Drupal\Tests\og\UnitCode
public function testSetRestrictAccess(array $values) {
$permission = new GroupPermission();
$permission
->setRestrictAccess($values['restrict access']);
$this
->assertEquals($values['restrict access'], $permission
->get('restrict access'));
}