You are here

public function GroupContentOperationPermissionTest::testSetInvalidOwnershipValue in Organic groups 8

Tests setting an invalid ownership property for a group content permission.

@covers ::set

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

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