46 calls to entity_test_create_bundle()

BulkDeleteTest::setUp in core/modules/field/tests/src/Kernel/BulkDeleteTest.php
Set the default field storage backend for fields created during tests.
BundleClassTest::testAmbiguousBundleClassExceptionCreate in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception is thrown if two bundles share the same bundle class.
BundleClassTest::testAmbiguousBundleClassExceptionEntityTypeRepository in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception is thrown if two entity types share the same bundle class.
BundleClassTest::testBundleClassShouldExist in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception thrown if a bundle class doesn't exist.
BundleClassTest::testBundleClassShouldExtendEntityClass in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception thrown if a bundle class doesn't extend the entity class.
BundleClassTest::testEntitySubclass in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Tests making use of a custom bundle class.
ClaroEntityDisplayTest::testExtraFields in core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroEntityDisplayTest.php
Copied from parent.
CommentCacheTagsTest::createEntity in core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
Creates the entity to be tested.
CommentNonNodeTest::setUp in core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
CommentNonNodeTest::testsNonIntegerIdEntities in core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
Tests comment fields cannot be added to entity types without integer IDs.
CommentResourceTestBase::createEntity in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Creates the entity to be tested.
CommentTest::createEntity in core/modules/jsonapi/tests/src/Functional/CommentTest.php
Creates the entity to be tested.
CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessBasedOnPermissions in core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php
Implements ::testCollectionFilterAccess() for pure permission-based access.
ConfigTranslationCacheTest::testFieldConfigTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationCacheTest.php
Tests the translation of field and field storage configuration.
ConfigTranslationUiTest::testBooleanFieldConfigTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the translation of a boolean field settings.
ConfigTranslationUiTest::testFieldConfigTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the translation of field and field storage configuration.
ContentModerationStateTest::testWorkflowNonConfigBundleDependencies in core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
Tests the content moderation workflow dependencies for non-config bundles.
DefaultsSectionStorageTest::setUp in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
EntityAddUITest::testAddPageWithoutBundleEntities in core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
Tests the add page for an entity type not using bundle entities.
EntityBundleFieldTest::testCustomBundleFieldUsage in core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php
Tests making use of a custom bundle field.
EntityBundleListenerTest::testOnBundleCreate in core/tests/Drupal/KernelTests/Core/Entity/EntityBundleListenerTest.php
@covers ::onBundleCreate
EntityCacheTagsTestBase::createReferenceTestEntities in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
Creates a referencing and a non-referencing entity for testing purposes.
EntityConverterTest::setUp in core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterTest.php
EntityDefinitionUpdateTest::testBundleFieldDeleteWithExistingData in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests deleting a bundle field when it has existing data.
EntityDefinitionUpdateTest::testBundleFieldUpdateWithExistingData in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests updating a bundle field when it has existing data.
EntityDeriverTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php
EntityDisplayTest::testExtraFieldComponent in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Tests the behavior of a field component within an entity display object.
EntityDisplayTest::testExtraFieldComponentInitialInvalidConfig in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Tests the behavior of an extra field component with initial invalid values.
EntityDisplayTest::testExtraFields in core/modules/field_ui/tests/src/FunctionalJavascript/EntityDisplayTest.php
Tests extra fields.
EntityFieldTest::testDataTypes in core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
Makes sure data types are correctly derived for all entity types.
EntityFieldTest::testFieldOverrideBundleField in core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
Tests creating a field override config for a bundle field.
EntityQueryRelationshipTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php
EntityQueryTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
EntityReferenceFieldTest::testEntityReferenceFieldValidation in core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
Tests reference field validation.
EntityReferenceSettingsTest::setUp in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
EntityViewHookTest::testHookEntityDisplayBuildAlter in core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php
Tests hook_entity_display_build_alter().
FieldAttachStorageTest::testEntityCreateBundle in core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
Tests entity_bundle_create().
FieldAttachStorageTest::testEntityDeleteBundle in core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
Tests entity_bundle_delete().
FieldAttachStorageTest::testFieldAttachLoadMultiple in core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
Tests the 'multiple' load feature.
FieldCrudTest::testDeleteFieldCrossDeletion in core/modules/field/tests/src/Kernel/FieldCrudTest.php
Tests the cross deletion behavior between field storages and fields.
FieldCrudTest::testDeleteFieldNoData in core/modules/field/tests/src/Kernel/FieldCrudTest.php
Tests the deletion of a field with no data.
FieldFieldTest::testGetValueMethod in core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
Tests \Drupal\views\Plugin\views\field\EntityField::getValue.
FieldFieldTest::testMissingBundleFieldRender in core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
Tests that a field not available for every bundle is rendered as empty.
FieldImportCreateTest::testImportCreateDefault in core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
Tests creating field storages and fields during default config import.
FieldImportDeleteTest::testImportDelete in core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
Tests deleting field storages and fields as part of config import.
FileListingTest::testFileListingUsageNoLink in core/modules/file/tests/src/Functional/FileListingTest.php
Tests file listing usage page for entities with no canonical link template.

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