You are here

protected function FieldAttachOtherTest::setUp in Drupal 8

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

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

Overrides FieldKernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php, line 16

Class

FieldAttachOtherTest
Tests other Field API functions.

Namespace

Drupal\Tests\field\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->container
    ->get('router.builder')
    ->rebuild();
  $this
    ->installEntitySchema('entity_test_rev');
  $this
    ->createFieldWithStorage();
}