You are here

public function GroupPermissionTest::testGetInvalidProperty in Organic groups 8

Tests getting an invalid property of a permission.

@covers ::get

File

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

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

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