public function EntityAccessTest::testRegularAccess in Group 2.0.x
Same name and namespace in other branches
- 8 tests/src/Kernel/EntityAccessTest.php \Drupal\Tests\group\Kernel\EntityAccessTest::testRegularAccess()
Tests that regular access checks work.
File
- tests/
src/ Kernel/ EntityAccessTest.php, line 70
Class
- EntityAccessTest
- Tests that Group properly checks access for grouped entities.
Namespace
Drupal\Tests\group\KernelCode
public function testRegularAccess() {
$entity_1 = $this
->createTestEntity();
$this
->assertTrue($this->accessControlHandler
->access($entity_1, 'view'), 'Regular view access works.');
}