You are here

public function GroupContentOperationPermissionTest::testSetInvalidProperty in Organic groups 8

Tests setting an invalid property for a group content permission.

@covers ::set

File

tests/src/Unit/GroupContentOperationPermissionTest.php, line 350

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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