public function GroupContentOperationPermissionTest::testSetInvalidRestrictAccessValue in Organic groups 8
Tests setting an invalid restrict access for a group content permission.
@covers ::set
File
- tests/
src/ Unit/ GroupContentOperationPermissionTest.php, line 362
Class
- GroupContentOperationPermissionTest
- Tests group content permissions.
Namespace
Drupal\Tests\og\UnitCode
public function testSetInvalidRestrictAccessValue() {
$permission = new GroupContentOperationPermission();
$this
->expectException(\InvalidArgumentException::class);
$permission
->set('restrict access', 'invalid value');
}