function FieldConfigAccessControlHandlerTest::testAccess
Same name in other branches
- 8.9.x core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php \Drupal\Tests\field\Unit\FieldConfigAccessControlHandlerTest::testAccess()
- 10 core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php \Drupal\Tests\field\Unit\FieldConfigAccessControlHandlerTest::testAccess()
- 11.x core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php \Drupal\Tests\field\Unit\FieldConfigAccessControlHandlerTest::testAccess()
Ensures field config access is working properly.
Overrides FieldStorageConfigAccessControlHandlerTest::testAccess
File
-
core/
modules/ field/ tests/ src/ Unit/ FieldConfigAccessControlHandlerTest.php, line 38
Class
- FieldConfigAccessControlHandlerTest
- Tests the field config access controller.
Namespace
Drupal\Tests\field\UnitCode
public function testAccess() {
$this->assertAllowOperations([], $this->anon);
$this->assertAllowOperations([
'view',
'update',
'delete',
], $this->member);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.