You are here

public function EntityUUIDTest::testCRUD in Drupal 9

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

Tests UUID generation in entity CRUD operations.

File

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

Class

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

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testCRUD() {

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