You are here

protected function FieldDataCountTest::setUp in Zircon Profile 8

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

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

Overrides FieldUnitTestBase::setUp

File

core/modules/field/src/Tests/FieldDataCountTest.php, line 42
Contains \Drupal\field\Tests\FieldDataCountTest.

Class

FieldDataCountTest
Tests counting field data records and the hasData() method on FieldStorageConfig entity.

Namespace

Drupal\field\Tests

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('entity_test_rev');
  $this->storage = \Drupal::entityManager()
    ->getStorage('entity_test');
  $this->storageRev = \Drupal::entityManager()
    ->getStorage('entity_test_rev');
  $this->storageUser = \Drupal::entityManager()
    ->getStorage('user');
}