function FieldUnitTestBase::setUp

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

Overrides DrupalUnitTestBase::setUp

17 calls to FieldUnitTestBase::setUp()
BulkDeleteTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php
Set the default field storage backend for fields created during tests.
DisplayApiTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/DisplayApiTest.php
Set the default field storage backend for fields created during tests.
EmailItemTest::setUp in drupal/core/modules/email/lib/Drupal/email/Tests/EmailItemTest.php
Set the default field storage backend for fields created during tests.
EntityReferenceItemTest::setUp in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php
Sets up the test.
FieldAttachOtherTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/FieldAttachOtherTest.php
Set the default field storage backend for fields created during tests.

... See full list

17 methods override FieldUnitTestBase::setUp()
BulkDeleteTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php
Set the default field storage backend for fields created during tests.
DisplayApiTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/DisplayApiTest.php
Set the default field storage backend for fields created during tests.
EmailItemTest::setUp in drupal/core/modules/email/lib/Drupal/email/Tests/EmailItemTest.php
Set the default field storage backend for fields created during tests.
EntityReferenceItemTest::setUp in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php
Sets up the test.
FieldAttachOtherTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/FieldAttachOtherTest.php
Set the default field storage backend for fields created during tests.

... See full list

File

drupal/core/modules/field/lib/Drupal/field/Tests/FieldUnitTestBase.php, line 35
Contains \Drupal\field\Tests\FieldUnitTestBase.

Class

FieldUnitTestBase
Parent class for Field API unit tests.

Namespace

Drupal\field\Tests

Code

function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', array(
    'sequences',
    'variable',
    'config_snapshot',
  ));
  $this
    ->installSchema('entity_test', 'entity_test');
  $this
    ->installSchema('field_test', array(
    'test_entity',
    'test_entity_revision',
    'test_entity_bundle',
  ));

  // Set default storage backend and configure the theme system.
  $this
    ->installConfig(array(
    'field',
    'system',
  ));
}