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