public function EntityAccessTest::testRegularAccess in Group 8
Same name and namespace in other branches
- 2.0.x 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.');
}