You are here

protected function EntityDefinitionTestTrait::deleteEntityType in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Entity/Traits/EntityDefinitionTestTrait.php \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait::deleteEntityType()
  2. 10 core/modules/system/tests/src/Functional/Entity/Traits/EntityDefinitionTestTrait.php \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait::deleteEntityType()

Removes the entity type.

4 calls to EntityDefinitionTestTrait::deleteEntityType()
EntityDefinitionUpdateTest::testInstallFieldableEntityTypeWithoutInCodeDefinition in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests creating a fieldable entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUninstallEntityTypeWithoutInCodeDefinition in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests uninstalling an entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUpdateEntityTypeWithoutInCodeDefinition in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests updating an entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUpdateFieldableEntityTypeWithoutInCodeDefinition in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests updating a fieldable entity type that doesn't exist in code anymore.

File

core/modules/system/tests/src/Functional/Entity/Traits/EntityDefinitionTestTrait.php, line 422

Class

EntityDefinitionTestTrait
Provides some test methods used to update existing entity definitions.

Namespace

Drupal\Tests\system\Functional\Entity\Traits

Code

protected function deleteEntityType() {
  $this->state
    ->set('entity_test_update.entity_type', 'null');
}