You are here

function EntityUUIDTest::testCRUD 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::testCRUD()

Tests UUID generation in entity CRUD operations.

File

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

Class

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

Namespace

Drupal\system\Tests\Entity

Code

function testCRUD() {

  // All entity variations have to have the same results.
  foreach (entity_test_entity_types() as $entity_type) {
    $this
      ->assertCRUD($entity_type);
  }
}