You are here

protected function EntityUUIDTest::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/system/src/Tests/Entity/EntityUUIDTest.php, line 17
Contains \Drupal\system\Tests\Entity\EntityUUIDTest.

Class

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

Namespace

Drupal\system\Tests\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);
    }
  }
}