You are here

protected function QuickEditTestBase::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php \Drupal\Tests\quickedit\Kernel\QuickEditTestBase::setUp()
  2. 10 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.

Overrides KernelTestBase::setUp

3 calls to QuickEditTestBase::setUp()
EditorSelectionTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
Sets the default field storage backend for fields created during tests.
MetadataGeneratorTest::setUp in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
Sets the default field storage backend for fields created during tests.
QuickEditIntegrationTest::setUp in core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
Sets the default field storage backend for fields created during tests.
3 methods override QuickEditTestBase::setUp()
EditorSelectionTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
Sets the default field storage backend for fields created during tests.
MetadataGeneratorTest::setUp in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
Sets the default field storage backend for fields created during tests.
QuickEditIntegrationTest::setUp in core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
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() {
  parent::setUp();
  $this->fields = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installConfig([
    'field',
    'filter',
  ]);
}