function FieldConfigAccessControlHandlerTest::testAccess

Same name in other branches
  1. 9 core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php \Drupal\Tests\field\Unit\FieldConfigAccessControlHandlerTest::testAccess()
  2. 8.9.x core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php \Drupal\Tests\field\Unit\FieldConfigAccessControlHandlerTest::testAccess()
  3. 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 40

Class

FieldConfigAccessControlHandlerTest
Tests the field config access controller.

Namespace

Drupal\Tests\field\Unit

Code

public function testAccess() : void {
    $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.