namespace Drupal\KernelTests\Core\Entity

Same name in other branches
  1. 10 Drupal\KernelTests\Core\Entity
  2. 9 Drupal\KernelTests\Core\Entity
  3. 8.9.x Drupal\KernelTests\Core\Entity
Object name File name Summary
BaseFieldOverrideValidationTest core/tests/Drupal/KernelTests/Core/Entity/BaseFieldOverrideValidationTest.php Tests validation of base_field_override entities.
BundleClassTest core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests entity bundle classes.
BundleConstraintValidatorTest core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Tests validation constraints for BundleConstraintValidator.
BundlePermissionHandlerTraitTest core/tests/Drupal/KernelTests/Core/Entity/BundlePermissionHandlerTraitTest.php @coversDefaultClass \Drupal\Core\Entity\BundlePermissionHandlerTrait
ConfigEntityAdapterTest core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php Tests entity adapter for configuration entities.
ConfigEntityQueryTest core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php Tests Config Entity Query functionality.
ContentEntityChangedTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php Tests basic EntityChangedInterface functionality.
ContentEntityCloneTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php Tests proper cloning of content entities.
ContentEntityFieldMethodInvocationOrderTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityFieldMethodInvocationOrderTest.php Tests correct field method invocation order.
ContentEntityHasChangesTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Tests ContentEntityBase::hasTranslationChanges().
ContentEntityNonRevisionableFieldTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNonRevisionableFieldTest.php Tests non-revisionable fields on revisionable (and translatable) entities.
ContentEntityNullStorageTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNullStorageTest.php Tests ContentEntityNullStorage entity query support.
ContentEntityStorageBaseTest core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php @coversDefaultClass \Drupal\Core\Entity\ContentEntityStorageBase
CreateSampleEntityTest core/tests/Drupal/KernelTests/Core/Entity/CreateSampleEntityTest.php Tests the ContentEntityStorageBase::createWithSampleValues method.
DateFormatValidationTest core/tests/Drupal/KernelTests/Core/Entity/DateFormatValidationTest.php Tests validation of date_format entities.
DefaultTableMappingIntegrationTest core/tests/Drupal/KernelTests/Core/Entity/DefaultTableMappingIntegrationTest.php Tests the default table mapping class for content entities stored in SQL.
EntityAccessControlHandlerTest core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php Tests the entity access control handler.
EntityApiTest core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php Tests basic CRUD functionality.
EntityAutocompleteTest core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php Tests the autocomplete functionality.
EntityBaseTest core/tests/Drupal/KernelTests/Core/Entity/EntityBaseTest.php Tests the functionality provided by \Drupal\Core\Entity\EntityBase.
EntityBundleConditionTest core/tests/Drupal/KernelTests/Core/Entity/EntityBundleConditionTest.php Tests that entity bundle conditions works properly.
EntityBundleExistsConstraintValidatorTest core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php @group Entity
@group Validation
EntityBundleFieldTest core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php Tests adding a custom bundle field.
EntityBundleListenerTest core/tests/Drupal/KernelTests/Core/Entity/EntityBundleListenerTest.php @coversDefaultClass \Drupal\Core\Entity\EntityBundleListener
EntityCrudHookTest core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests entity CRUD via hooks.
EntityDecoupledTranslationRevisionsTest core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php Test decoupled translation revisions.
EntityDefinitionUpdateTest core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests EntityDefinitionUpdateManager functionality.
EntityDeprecationTest core/tests/Drupal/KernelTests/Core/Entity/EntityDeprecationTest.php Tests the deprecations for the \Drupal\KernelTests\Core\Entity namespace.
EntityDeriverTest core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php Tests EntityDeriver functionality.
EntityDisplayBaseTest core/tests/Drupal/KernelTests/Core/Entity/EntityDisplayBaseTest.php @coversDefaultClass \Drupal\Core\Entity\EntityDisplayBase
EntityDisplayFormBaseTest core/tests/Drupal/KernelTests/Core/Entity/EntityDisplayFormBaseTest.php @coversDefaultClass \Drupal\field_ui\Form\EntityDisplayFormBase
EntityDisplayRepositoryTest core/tests/Drupal/KernelTests/Core/Entity/EntityDisplayRepositoryTest.php @coversDefaultClass \Drupal\Core\Entity\EntityDisplayRepository
EntityDuplicateTest core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php Test entity duplication.
EntityFieldDefaultValueTest core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php Tests default values for entity fields.
EntityFieldTest core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php Tests the Entity Field API.
EntityFormDisplayValidationTest core/tests/Drupal/KernelTests/Core/Entity/EntityFormDisplayValidationTest.php Tests validation of entity_form_display entities.
EntityFormModeValidationTest core/tests/Drupal/KernelTests/Core/Entity/EntityFormModeValidationTest.php Tests validation of entity_form_mode entities.
EntityHasFieldConstraintValidatorTest core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php @covers \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraintValidator
EntityKernelTestBase core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php Defines an abstract test base for entity kernel tests.
EntityKernelTestBaseTest core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBaseTest.php @covers \Drupal\KernelTests\Core\Entity\EntityKernelTestBase
EntityKeysTest core/tests/Drupal/KernelTests/Core/Entity/EntityKeysTest.php Test the behavior of entity keys.
EntityLanguageTestBase core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php Base class for language-aware entity tests.
EntityLoadByUuidTest core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php Tests loading entities by UUID.
EntityNonRevisionableTranslatableFieldTest core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php Tests translating a non-revisionable field.
EntityQueryAggregateTest core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Tests the Entity Query Aggregation API.
EntityQueryRelationshipTest core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php Tests the Entity Query relationship API.
EntityQueryTest core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests Entity Query functionality.
EntityReferenceFieldTest core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Tests for the entity reference field.
EntityRepositoryTest core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Tests the entity repository.
EntityRevisionsTest core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php Tests the loaded Revision of an entity.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.