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