You are here

protected function EntityUUIDTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php \Drupal\KernelTests\Core\Entity\EntityUUIDTest::setUp()

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php, line 12

Class

EntityUUIDTest
Tests creation, saving, and loading of entity UUIDs.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() {
  parent::setUp();
  foreach (entity_test_entity_types() as $entity_type_id) {

    // The entity_test schema is installed by the parent.
    if ($entity_type_id != 'entity_test') {
      $this
        ->installEntitySchema($entity_type_id);
    }
  }
}