function QuickEditTestBase::setUp

Same name in other branches
  1. 8.9.x 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()
EditorIntegrationTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorIntegrationTest.php
EditorSelectionTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
MetadataGeneratorTest::setUp in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
3 methods override QuickEditTestBase::setUp()
EditorIntegrationTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorIntegrationTest.php
EditorSelectionTest::setUp in core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
MetadataGeneratorTest::setUp in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php

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',
    ]);
}

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