You are here

public function GroupPermissionTest::testSetInvalidProperty in Organic groups 8

Tests setting an invalid property for a permission.

@covers ::set

File

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

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

public function testSetInvalidProperty() {
  $permission = new GroupPermission();
  $this
    ->expectException(\InvalidArgumentException::class);
  $permission
    ->set('invalid property', 'a value');
}