function FieldAccessTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Field/ FieldAccessTest.php, line 44 
Class
- FieldAccessTest
- Tests Field level access hooks.
Namespace
Drupal\KernelTests\Core\FieldCode
protected function setUp() : void {
  parent::setUp();
  // Install field configuration.
  $this->installConfig([
    'field',
  ]);
  $this->installEntitySchema('entity_test');
  $this->installEntitySchema('entity_test_mul');
  $this->installEntitySchema('entity_test_mul_langcode_key');
  $this->installEntitySchema('entity_test_mul_changed');
  $this->installEntitySchema('entity_test_rev');
  $this->installEntitySchema('entity_test_mulrev');
  $this->installEntitySchema('entity_test_mulrev_changed');
  // The users table is needed for creating dummy user accounts.
  $this->installEntitySchema('user');
  // Register entity_test text field.
  $this->container
    ->get('module_handler')
    ->loadInclude('entity_test', 'install');
  entity_test_install();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
