function FieldConfigAccessControlHandlerTest::testAccess

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

Class

FieldConfigAccessControlHandlerTest
Tests the field config access controller.

Namespace

Drupal\Tests\field\Unit

Code

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.