27 calls to EntityReferenceTestTrait::createEntityReferenceField()

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
EntityReferenceAutoCreateTest::testMultipleTargetBundles in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
Tests multiple target bundles.
EntityReferenceAutoCreateTest::testNoBundles in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
Tests autocreation for an entity that has no bundles.
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.
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.
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.
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.
MediaThumbnailFormatterTest::setUp in core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.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
TaxonomyTranslationTestTrait::setUpTermReferenceField in core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php
Adds term reference field for the article content type.
TokenReplaceTest::setUp in core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
TranslationsTest::setUp in core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php

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