You are here

public function EntityNoUuidDeletion::testEntityDeletion in Entity Share 8.3

Tests that deleting an entity without UUID is possible.

File

modules/entity_share_client/tests/src/Kernel/EntityNoUuidDeletion.php, line 44

Class

EntityNoUuidDeletion
Test entity without UUID.

Namespace

Drupal\Tests\entity_share_client\Kernel

Code

public function testEntityDeletion() {
  $entity = EntityTestNoUuid::create([
    'name' => 'Test deletion',
  ]);
  $entity
    ->save();
  $entity
    ->delete();
  $this
    ->assertTrue(TRUE, 'If we can reach this assert, it means that it is possible to delete the entity without UUID.');
}