You are here

protected function QuickEditTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php \Drupal\Tests\quickedit\Kernel\QuickEditTestBase::setUp()
  2. 9 core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php \Drupal\Tests\quickedit\Kernel\QuickEditTestBase::setUp()

Sets the default field storage backend for fields created during tests.

File

core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php, line 46

Class

QuickEditTestBase
Base class for testing Quick Edit functionality.

Namespace

Drupal\Tests\quickedit\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->fields = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installConfig([
    'field',
    'filter',
  ]);
}