You are here

public function GroupCheckTest::testInvalidEntityType in Organic groups 8

Tests an invalid entity type.

@covers ::access

File

tests/src/Unit/GroupCheckTest.php, line 148

Class

GroupCheckTest
Tests the group check access.

Namespace

Drupal\Tests\og\Unit

Code

public function testInvalidEntityType() {
  $this->entityTypeManager
    ->getDefinition($this->entityTypeId, FALSE)
    ->willReturn(NULL);
  $result = $this
    ->getAccessResult();
  $this
    ->assertTrue($result
    ->isForbidden());
}