You are here

public function FieldConfigAccessControlHandlerTest::testAccess in Drupal 9

Same name and namespace in other branches
  1. 8 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);
}