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\UnitCode
public function testInvalidEntityType() {
$this->entityTypeManager
->getDefinition($this->entityTypeId, FALSE)
->willReturn(NULL);
$result = $this
->getAccessResult();
$this
->assertTrue($result
->isForbidden());
}