You are here

protected function FieldAttachOtherTest::setUp in Zircon Profile 8

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

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

Overrides FieldUnitTestBase::setUp

File

core/modules/field/src/Tests/FieldAttachOtherTest.php, line 20
Contains \Drupal\field\Tests\FieldAttachOtherTest.

Class

FieldAttachOtherTest
Tests other Field API functions.

Namespace

Drupal\field\Tests

Code

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