You are here

protected function FieldDataCountTest::setUp in Drupal 8

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

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

Overrides FieldKernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/FieldDataCountTest.php, line 40

Class

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

Namespace

Drupal\Tests\field\Kernel

Code

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