function FieldEntitySettingsTest::setUp

Overrides KernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/Entity/FieldEntitySettingsTest.php, line 27

Class

FieldEntitySettingsTest
Tests the ways that field entities handle their settings.

Namespace

Drupal\Tests\field\Kernel\Entity

Code

protected function setUp() : void {
  parent::setUp();
  EntityTestBundle::create([
    'id' => 'test',
    'label' => 'Test',
  ])->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.