You are here

protected function FieldImportDeleteUninstallTest::setUp in Drupal 8

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

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

Overrides FieldKernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/FieldImportDeleteUninstallTest.php, line 26

Class

FieldImportDeleteUninstallTest
Delete field storages and fields during config synchronization and uninstall module that provides the field type.

Namespace

Drupal\Tests\field\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Module uninstall requires users_data tables.
  // @see drupal_flush_all_caches()
  // @see user_modules_uninstalled()
  $this
    ->installSchema('user', [
    'users_data',
  ]);
}