You are here

public function GroupContentOperationPermissionTest::testGetInvalidProperty in Organic groups 8

Tests getting an invalid property from a group content permission.

@covers ::get

File

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

Class

GroupContentOperationPermissionTest
Tests group content permissions.

Namespace

Drupal\Tests\og\Unit

Code

public function testGetInvalidProperty() {
  $permission = new GroupContentOperationPermission();
  $this
    ->expectException(\InvalidArgumentException::class);
  $permission
    ->get('invalid property');
}