You are here

60 calls to EntityReferenceTestTrait::createEntityReferenceField() in Drupal 9

CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessBasedOnPermissions in core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php
Implements ::testCollectionFilterAccess() for pure permission-based access.
ContentEntityTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
ContentModerationTest::setUp in core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php
DefaultViewsTest::setUp in core/modules/views/tests/src/Functional/DefaultViewsTest.php
DisplayEntityReferenceTest::setUp in core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
EarlyDateTest::setUp in core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
EntityQueryRelationshipTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php
EntityQueryTest::testWithTwoEntityReferenceFieldsToSameEntityType in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
Tests that EntityQuery works when querying the same entity from two fields.
EntityReferenceAutocompleteWidgetTest::testEntityReferenceAutocompleteWidget in core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php
Tests that the default autocomplete widget return the correct results.
EntityReferenceAutoCreateTest::testMultipleTargetBundles in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
Tests if an entity reference field having multiple target bundles is storing the auto-created entity in the right destination.
EntityReferenceAutoCreateTest::testNoBundles in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
Tests autocreation for an entity that has no bundles.
EntityReferenceFieldAttributesTest::setUp in core/modules/rdf/tests/src/Functional/EntityReferenceFieldAttributesTest.php
EntityReferenceFieldCreationTest::testAddReferenceFieldTargetingEntityTypeWithoutId in core/modules/system/tests/src/Functional/Entity/EntityReferenceFieldCreationTest.php
Tests that entity reference fields cannot target entity types without IDs.
EntityReferenceFieldTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
EntityReferenceFieldTest::testReferencedEntitiesStringId in core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
Tests referencing entities with string IDs.
EntityReferenceFormatterTest::setUp in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
EntityReferenceIntegrationTest::testSupportedEntityTypesAndWidgets in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
Tests the entity reference field with all its supported field widgets.
EntityReferenceItemTest::setUp in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
Sets up the test.
EntityReferenceRdfaTest::setUp in core/modules/rdf/tests/src/Kernel/Field/EntityReferenceRdfaTest.php
Set the default field storage backend for fields created during tests.
EntityReferenceRelationshipTest::setUp in core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
EntityReferenceRelationshipTest::testEntityReferenceConfigEntity in core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
Test that config entities don't get relationships added.
EntityReferenceSelectionReferenceableTest::setUp in core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php
EntityReferenceSettingsTest::testConfigTargetBundleDeletion in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
Tests that config bundle deletions are mirrored in field config settings.
EntityReferenceSettingsTest::testCustomTargetBundleDeletion in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
Tests that deletions of custom bundles are mirrored in field settings.
EntityReferenceXSSTest::testEntityReferenceXSS in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
Tests markup is escaped in the entity reference select and label formatter.
EntityViewBuilderTest::testEntityViewBuilderCacheWithReferences in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests entity render cache with references.
EntityViewBuilderTest::testViewField in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests EntityViewBuilder::viewField() language awareness.
ExposedFormCheckboxesTest::testExposedIsAllOfFilter in core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
Tests that "is all of" filters work with checkboxes.
InternalEntitiesTest::setUp in core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php
JsonApiFunctionalTestBase::setUp in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTestBase.php
JsonApiRegressionTest::testBundlelessRelationshipMutationFromIssue2973681 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure POST and PATCH works for bundle-less relationship routes.
JsonApiRegressionTest::testDanglingReferencesInAnEntityReferenceFieldFromIssue2968972 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Cannot PATCH an entity with dangling references in an ER field.
JsonApiRegressionTest::testDanglingReferencesInAnEntityReferenceFieldFromIssue2984647 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Cannot GET an entity with dangling references in an ER field.
JsonApiRegressionTest::testDeepNestedIncludeMultiTargetEntityTypeFieldFromIssue2973681 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure deep nested include works on multi target entity type field.
JsonApiRegressionTest::testDenormalizeAliasedRelationshipFromIssue2953207 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures denormalizing relationships with aliased field names works.
JsonApiRegressionTest::testEmptyRelationshipFilteringFromIssue3025372 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure filtering for entities with empty entity reference fields works.
JsonApiRegressionTest::testThatRoutesAreRebuiltAfterDataModelChangesFromIssue2984886 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures that JSON:API routes are caches are dynamically rebuilt.
LayoutBuilderFieldBlockEntityReferenceCacheTagsTest::setUp in core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php
ManageFieldsFunctionalTest::setUp in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
MigrationPluginListTest::testGetDefinitions in core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php
@covers ::getDefinitions
NodeAccessCacheabilityWithNodeGrants::testAccessCacheabilityWithNodeGrants in core/modules/node/tests/src/Functional/NodeAccessCacheabilityWithNodeGrants.php
Tests node view access cacheability with node grants.
PagePreviewTest::setUp in core/modules/node/tests/src/Functional/PagePreviewTest.php
QuickEditAutocompleteTermTest::setUp in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditAutocompleteTermTest.php
QuickEditIntegrationTest::setUp in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php
RssTest::setUp in core/modules/taxonomy/tests/src/Functional/RssTest.php
SelectionTest::setUp in core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
SelectionTest::setUp in core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php
TaggedWithTest::setUp in core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
TaxonomyIndexTidUiTest::testExposedFilter in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
Tests exposed taxonomy filters.
TaxonomyTermViewTest::setUp in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
TaxonomyTestBase::mockStandardInstall in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php
Provides a workaround for the inability to use the standard profile.
TaxonomyTestBase::mockStandardInstall in core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php
Provides a workaround for the inability to use the standard profile.
TaxonomyTranslationTestTrait::setUpTermReferenceField in core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php
Adds term reference field for the article content type.
TermIndexTest::setUp in core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
TermTest::setUp in core/modules/taxonomy/tests/src/Functional/TermTest.php
TokenReplaceTest::setUp in core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
TranslationsTest::setUp in core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php
UserEntityReferenceTest::setUp in core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
ValidReferenceConstraintValidatorTest::testPreExistingItemsValidation in core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
Tests the validation of pre-existing items in an entity reference field.
WorkspaceIntegrationTest::testEntityQueryRelationship in core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php
Tests the Entity Query relationship API with workspaces.