From 73b4628445c2dba996ed4a3254efaad25ceb10a7 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Wed, 15 Nov 2023 14:44:07 -0600 Subject: [PATCH] Issue #3401236 by pradhumanjain2311, xjm, joachim, smustgrave: Rename EntityReferenceTestTrait to help discoverability --- .../tests/src/Functional/CommentEntityReferenceTest.php | 4 ++-- .../comment/tests/src/Kernel/CommentValidationTest.php | 4 ++-- .../EntityReference/EntityReferenceAutoCreateTest.php | 4 ++-- .../EntityReference/EntityReferenceIntegrationTest.php | 4 ++-- .../src/Functional/EntityReference/EntityReferenceXSSTest.php | 4 ++-- .../src/Functional/EntityReference/Views/SelectionTest.php | 4 ++-- .../Kernel/EntityReference/EntityReferenceFormatterTest.php | 4 ++-- .../src/Kernel/EntityReference/EntityReferenceItemTest.php | 4 ++-- .../Kernel/EntityReference/EntityReferenceSettingsTest.php | 4 ++-- .../EntityReference/Views/EntityReferenceRelationshipTest.php | 4 ++-- .../tests/src/Kernel/EntityReference/Views/SelectionTest.php | 4 ++-- ...nceTestTrait.php => EntityReferenceFieldCreationTrait.php} | 2 +- .../tests/src/Functional/ManageFieldsFunctionalTestBase.php | 4 ++-- .../jsonapi/tests/src/Functional/InternalEntitiesTest.php | 4 ++-- .../tests/src/Functional/JsonApiFunctionalTestBase.php | 4 ++-- .../jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php | 4 ++-- .../Traits/CommonCollectionFilterAccessTestPatternsTrait.php | 4 ++-- .../LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php | 4 ++-- .../media/tests/src/Kernel/MediaThumbnailFormatterTest.php | 4 ++-- .../tests/src/FunctionalJavascript/ContentModerationTest.php | 4 ++-- .../tests/src/FunctionalJavascript/TranslationsTest.php | 4 ++-- .../tests/src/Kernel/Plugin/MigrationPluginListTest.php | 4 ++-- .../src/Kernel/Plugin/migrate/source/ContentEntityTest.php | 4 ++-- .../node/tests/src/Functional/NodeAccessBaseTableTest.php | 4 ++-- .../src/Functional/NodeAccessCacheabilityWithNodeGrants.php | 4 ++-- core/modules/node/tests/src/Functional/PagePreviewTest.php | 4 ++-- .../Functional/Entity/EntityReferenceFieldCreationTest.php | 4 ++-- .../Entity/EntityReferenceSelectionReferenceableTest.php | 4 ++-- .../taxonomy/tests/src/Functional/TaxonomyTestBase.php | 4 ++-- .../tests/src/Functional/TaxonomyTranslationTestTrait.php | 4 ++-- .../tests/src/Functional/Views/TaxonomyIndexTidUiTest.php | 4 ++-- .../taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php | 4 ++-- core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php | 4 ++-- .../taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php | 4 ++-- .../modules/user/tests/src/Kernel/UserEntityReferenceTest.php | 4 ++-- core/modules/views/tests/src/Functional/DefaultViewsTest.php | 4 ++-- .../src/Functional/Plugin/DisplayEntityReferenceTest.php | 4 ++-- .../tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php | 4 ++-- .../views/tests/src/Functional/Wizard/TaggedWithTest.php | 4 ++-- .../workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php | 4 ++-- .../EntityReference/EntityReferenceAutocompleteWidgetTest.php | 4 ++-- .../KernelTests/Core/Entity/EntityQueryRelationshipTest.php | 4 ++-- core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php | 4 ++-- .../KernelTests/Core/Entity/EntityReferenceFieldTest.php | 4 ++-- .../Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php | 4 ++-- .../Core/Entity/ValidReferenceConstraintValidatorTest.php | 4 ++-- 46 files changed, 91 insertions(+), 91 deletions(-) rename core/modules/field/tests/src/Traits/{EntityReferenceTestTrait.php => EntityReferenceFieldCreationTrait.php} (98%) diff --git a/core/modules/comment/tests/src/Functional/CommentEntityReferenceTest.php b/core/modules/comment/tests/src/Functional/CommentEntityReferenceTest.php index c7018ab61bc5..6a796f83785f 100644 --- a/core/modules/comment/tests/src/Functional/CommentEntityReferenceTest.php +++ b/core/modules/comment/tests/src/Functional/CommentEntityReferenceTest.php @@ -3,7 +3,7 @@ namespace Drupal\Tests\comment\Functional; use Drupal\comment\Entity\Comment; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests that comments behave correctly when added as entity references. @@ -12,7 +12,7 @@ */ class CommentEntityReferenceTest extends CommentTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php index 5f6c23cf1c57..e2630fc9365b 100644 --- a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php @@ -8,7 +8,7 @@ use Drupal\comment\Tests\CommentTestTrait; use Drupal\KernelTests\Core\Entity\EntityKernelTestBase; use Drupal\node\Entity\Node; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\user\Entity\User; /** @@ -18,7 +18,7 @@ */ class CommentValidationTest extends EntityKernelTestBase { use CommentTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to install. diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php index 991214a4bb0e..27d063143add 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php @@ -5,7 +5,7 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\field\Entity\FieldConfig; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\node\Entity\Node; use Drupal\field\Entity\FieldStorageConfig; @@ -17,7 +17,7 @@ */ class EntityReferenceAutoCreateTest extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; protected static $modules = ['node', 'taxonomy', 'entity_test']; diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php index 6e22f3d50742..17644d59e958 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php @@ -7,7 +7,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\config\Traits\AssertConfigEntityImportTrait; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests various Entity reference UI components. @@ -17,7 +17,7 @@ class EntityReferenceIntegrationTest extends BrowserTestBase { use AssertConfigEntityImportTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * The entity type used in this test. diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php index e45a903dad36..428db4b233ba 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php @@ -5,7 +5,7 @@ use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests possible XSS security issues in entity references. @@ -14,7 +14,7 @@ */ class EntityReferenceXSSTest extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php index dcd12506dd8d..0981e3c2f207 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php @@ -7,7 +7,7 @@ use Drupal\Component\Utility\Html; use Drupal\Core\Site\Settings; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\views\Views; /** @@ -17,7 +17,7 @@ */ class SelectionTest extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php index d7502b7e1264..8cc81031cbe5 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php @@ -14,7 +14,7 @@ use Drupal\user\Entity\Role; use Drupal\user\RoleInterface; use Drupal\entity_test\Entity\EntityTestLabel; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the formatters functionality. @@ -23,7 +23,7 @@ */ class EntityReferenceFormatterTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * The entity type used in this test. diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php index 19ceca0e443b..03532ffbce57 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php @@ -23,7 +23,7 @@ use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\user\Entity\User; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the new entity API for the entity reference field type. @@ -32,7 +32,7 @@ */ class EntityReferenceItemTest extends FieldKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to install. diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php index 7a5301c4aff2..caff6989a46d 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php @@ -8,7 +8,7 @@ use Drupal\node\Entity\NodeType; use Drupal\KernelTests\KernelTestBase; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Symfony\Component\ErrorHandler\BufferingLogger; /** @@ -18,7 +18,7 @@ */ class EntityReferenceSettingsTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php index f1be011b886d..925e2fffe5ff 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php @@ -6,7 +6,7 @@ use Drupal\field\Entity\FieldStorageConfig; use Drupal\entity_test\Entity\EntityTest; use Drupal\entity_test\Entity\EntityTestMul; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\views\Kernel\ViewsKernelTestBase; use Drupal\views\Tests\ViewTestData; use Drupal\views\Views; @@ -20,7 +20,7 @@ */ class EntityReferenceRelationshipTest extends ViewsKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Views used by this test. diff --git a/core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php index 977737632a6b..d9adda0c5690 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php @@ -7,7 +7,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\KernelTests\KernelTestBase; use Drupal\node\Entity\NodeType; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\NodeCreationTrait; use Drupal\views\Views; @@ -18,7 +18,7 @@ */ class SelectionTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use NodeCreationTrait; /** diff --git a/core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php b/core/modules/field/tests/src/Traits/EntityReferenceFieldCreationTrait.php similarity index 98% rename from core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php rename to core/modules/field/tests/src/Traits/EntityReferenceFieldCreationTrait.php index 26c4aaa81b5c..42edf6a34169 100644 --- a/core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php +++ b/core/modules/field/tests/src/Traits/EntityReferenceFieldCreationTrait.php @@ -8,7 +8,7 @@ /** * Provides common functionality for the EntityReference test classes. */ -trait EntityReferenceTestTrait { +trait EntityReferenceFieldCreationTrait { /** * Creates a field of an entity reference field storage on the specified bundle. diff --git a/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTestBase.php b/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTestBase.php index f6aa76cfd779..5b0a9f05a5a1 100644 --- a/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTestBase.php +++ b/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTestBase.php @@ -6,7 +6,7 @@ use Drupal\node\Entity\NodeType; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\field_ui\Traits\FieldUiTestTrait; /** @@ -15,7 +15,7 @@ class ManageFieldsFunctionalTestBase extends BrowserTestBase { use FieldUiTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to install. diff --git a/core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php b/core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php index 5d873695442a..20e9986a4202 100644 --- a/core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php +++ b/core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php @@ -8,7 +8,7 @@ use Drupal\entity_test\Entity\EntityTestNoLabel; use Drupal\entity_test\Entity\EntityTestWithBundle; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Makes assertions about the JSON:API behavior for internal entities. @@ -19,7 +19,7 @@ */ class InternalEntitiesTest extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTestBase.php b/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTestBase.php index ca96c08097ed..91ae9584465e 100644 --- a/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTestBase.php +++ b/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTestBase.php @@ -10,7 +10,7 @@ use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\image\Kernel\ImageFieldCreationTrait; use Drupal\user\Entity\Role; use Drupal\user\RoleInterface; @@ -24,7 +24,7 @@ */ abstract class JsonApiFunctionalTestBase extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use ImageFieldCreationTrait; const IS_MULTILINGUAL = TRUE; diff --git a/core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php b/core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php index f4457d070be9..b6e1b53cd4dc 100644 --- a/core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php +++ b/core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php @@ -5,7 +5,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; use Drupal\KernelTests\KernelTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Contains shared test utility methods. @@ -14,7 +14,7 @@ */ abstract class JsonapiKernelTestBase extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php b/core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php index 7dfb97067ea4..60266a44b95b 100644 --- a/core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php +++ b/core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php @@ -7,7 +7,7 @@ use Drupal\Core\Entity\EntityPublishedInterface; use Drupal\Core\Url; use Drupal\entity_test\Entity\EntityTest; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\jsonapi\Functional\ResourceTestBase; use GuzzleHttp\RequestOptions; @@ -16,7 +16,7 @@ */ trait CommonCollectionFilterAccessTestPatternsTrait { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Implements ::testCollectionFilterAccess() for pure permission-based access. diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php index f5d5e78e2b2f..3f7cc3636520 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php @@ -4,7 +4,7 @@ use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; use Drupal\Tests\node\Traits\NodeCreationTrait; @@ -16,7 +16,7 @@ class LayoutBuilderFieldBlockEntityReferenceCacheTagsTest extends BrowserTestBase { use ContentTypeCreationTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use NodeCreationTrait; /** diff --git a/core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php b/core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php index 1a90d1241644..f02290e7f5c4 100644 --- a/core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php +++ b/core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php @@ -3,7 +3,7 @@ namespace Drupal\Tests\media\Kernel; use Drupal\entity_test\Entity\EntityTestBundle; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * @coversDefaultClass \Drupal\media\Plugin\Field\FieldFormatter\MediaThumbnailFormatter @@ -11,7 +11,7 @@ */ class MediaThumbnailFormatterTest extends MediaKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to install. diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php index e2e65b294d7a..68a795324caf 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php @@ -7,7 +7,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\media\Entity\Media; use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\media\Traits\MediaTypeCreationTrait; use Drupal\Tests\TestFileCreationTrait; @@ -19,7 +19,7 @@ class ContentModerationTest extends WebDriverTestBase { use ContentModerationTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use MediaTypeCreationTrait; use TestFileCreationTrait; diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php index 4b14a2345f50..497f9a07c723 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php @@ -7,7 +7,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\media\Entity\Media; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\media\Traits\MediaTypeCreationTrait; use Drupal\Tests\TestFileCreationTrait; @@ -18,7 +18,7 @@ */ class TranslationsTest extends WebDriverTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use MediaTypeCreationTrait; use TestFileCreationTrait; diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php index 068b34a0a6f5..101dcbdef7ce 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php @@ -7,7 +7,7 @@ use Drupal\migrate\Exception\RequirementsException; use Drupal\migrate\Plugin\migrate\source\SqlBase; use Drupal\migrate\Plugin\RequirementsInterface; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the migration plugin manager. @@ -17,7 +17,7 @@ */ class MigrationPluginListTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php index 39823640d88d..36fe385b02f3 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php @@ -14,7 +14,7 @@ use Drupal\node\Entity\NodeType; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\media\Traits\MediaTypeCreationTrait; use Drupal\user\Entity\User; @@ -25,7 +25,7 @@ */ class ContentEntityTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use MediaTypeCreationTrait; /** diff --git a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php index 8081babaf2f4..6a8be2951ee2 100644 --- a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php +++ b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php @@ -6,7 +6,7 @@ use Drupal\Core\Language\LanguageInterface; use Drupal\node\Entity\NodeType; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests behavior of the node access subsystem if the base table is not node. @@ -15,7 +15,7 @@ */ class NodeAccessBaseTableTest extends NodeTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/node/tests/src/Functional/NodeAccessCacheabilityWithNodeGrants.php b/core/modules/node/tests/src/Functional/NodeAccessCacheabilityWithNodeGrants.php index da4dbd623ae2..3cd0ecf727b3 100644 --- a/core/modules/node/tests/src/Functional/NodeAccessCacheabilityWithNodeGrants.php +++ b/core/modules/node/tests/src/Functional/NodeAccessCacheabilityWithNodeGrants.php @@ -5,7 +5,7 @@ use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\node\Entity\NodeType; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests node view access cacheability with node grants. @@ -14,7 +14,7 @@ */ class NodeAccessCacheabilityWithNodeGrants extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/node/tests/src/Functional/PagePreviewTest.php b/core/modules/node/tests/src/Functional/PagePreviewTest.php index a3b3f73c2e42..9dbe7ac39e0b 100644 --- a/core/modules/node/tests/src/Functional/PagePreviewTest.php +++ b/core/modules/node/tests/src/Functional/PagePreviewTest.php @@ -11,7 +11,7 @@ use Drupal\node\Entity\NodeType; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\TestFileCreationTrait; use Drupal\user\RoleInterface; @@ -22,7 +22,7 @@ */ class PagePreviewTest extends NodeTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use CommentTestTrait; use TestFileCreationTrait { getTestFiles as drupalGetTestFiles; diff --git a/core/modules/system/tests/src/Functional/Entity/EntityReferenceFieldCreationTest.php b/core/modules/system/tests/src/Functional/Entity/EntityReferenceFieldCreationTest.php index 89a185704257..e75a02c0375d 100644 --- a/core/modules/system/tests/src/Functional/Entity/EntityReferenceFieldCreationTest.php +++ b/core/modules/system/tests/src/Functional/Entity/EntityReferenceFieldCreationTest.php @@ -3,7 +3,7 @@ namespace Drupal\Tests\system\Functional\Entity; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\field_ui\Traits\FieldUiTestTrait; /** @@ -13,7 +13,7 @@ */ class EntityReferenceFieldCreationTest extends BrowserTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use FieldUiTestTrait; /** diff --git a/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php b/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php index 79b0b86ad331..254273c2e642 100644 --- a/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php +++ b/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php @@ -6,7 +6,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\node\Entity\NodeType; use Drupal\KernelTests\KernelTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; // cspell:ignore xyabz @@ -17,7 +17,7 @@ */ class EntityReferenceSelectionReferenceableTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Bundle of 'entity_test_no_label' entity. diff --git a/core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php b/core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php index 7371aa2a2441..1a809063c09e 100644 --- a/core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php +++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php @@ -3,7 +3,7 @@ namespace Drupal\Tests\taxonomy\Functional; use Drupal\Tests\BrowserTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait; /** @@ -12,7 +12,7 @@ abstract class TaxonomyTestBase extends BrowserTestBase { use TaxonomyTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php b/core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php index 60861d6adbd2..f39ba5055c5f 100644 --- a/core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php +++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php @@ -5,14 +5,14 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\field\Entity\FieldStorageConfig; use Drupal\language\Entity\ConfigurableLanguage; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Provides common testing base for translated taxonomy terms. */ trait TaxonomyTranslationTestTrait { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * The vocabulary. diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php index ecb844727200..d0b2ae2a403e 100644 --- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php +++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\taxonomy\Functional\Views; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\Tests\views_ui\Functional\UITestBase; @@ -17,7 +17,7 @@ */ class TaxonomyIndexTidUiTest extends UITestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Views used by this test. diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php index ed0235b1acf7..5ad6b42c75a8 100644 --- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php +++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php @@ -4,7 +4,7 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Language\LanguageInterface; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\views\Functional\ViewTestBase; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; @@ -15,7 +15,7 @@ */ abstract class TaxonomyTestBase extends ViewTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php b/core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php index 7f4eb01828f1..70682693073d 100644 --- a/core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php @@ -6,7 +6,7 @@ use Drupal\Core\Render\BubbleableMetadata; use Drupal\KernelTests\KernelTestBase; use Drupal\node\Entity\NodeType; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\NodeCreationTrait; use Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait; @@ -17,7 +17,7 @@ */ class TokenReplaceTest extends KernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use NodeCreationTrait; use TaxonomyTestTrait; diff --git a/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php index e1f71f32beb6..55cf53f1f9d2 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php +++ b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php @@ -4,7 +4,7 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Language\LanguageInterface; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; use Drupal\Tests\node\Traits\NodeCreationTrait; use Drupal\Tests\user\Traits\UserCreationTrait; @@ -18,7 +18,7 @@ */ abstract class TaxonomyTestBase extends ViewsKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use UserCreationTrait; use NodeCreationTrait { diff --git a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php index 8c696100d023..6c7892868e27 100644 --- a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php +++ b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php @@ -4,7 +4,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\KernelTests\Core\Entity\EntityKernelTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\user\Entity\Role; /** @@ -14,7 +14,7 @@ */ class UserEntityReferenceTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * A randomly-generated role for testing purposes. diff --git a/core/modules/views/tests/src/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php index d97f3256d54e..91bd307c688c 100644 --- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php +++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php @@ -13,7 +13,7 @@ use Drupal\comment\Entity\Comment; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the default views provided by views. @@ -23,7 +23,7 @@ class DefaultViewsTest extends ViewTestBase { use CommentTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php index f6639dce1ac2..758e9b36e3cd 100644 --- a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php @@ -5,7 +5,7 @@ use Drupal\entity_test\Entity\EntityTest; use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\views\Functional\ViewTestBase; use Drupal\views\Views; @@ -18,7 +18,7 @@ */ class DisplayEntityReferenceTest extends ViewTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Views used by this test. diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php index e49fda6d79ed..997e9b207a27 100644 --- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php @@ -5,7 +5,7 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\views\Functional\ViewTestBase; use Drupal\views\Tests\ViewTestData; use Drupal\views\Views; @@ -17,7 +17,7 @@ */ class ExposedFormCheckboxesTest extends ViewTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php b/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php index 0319ef2d66a0..7641a5ef8130 100644 --- a/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php +++ b/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php @@ -6,7 +6,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the ability of the views wizard to create views filtered by taxonomy. @@ -15,7 +15,7 @@ */ class TaggedWithTest extends WizardTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php b/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php index de4bd73b33af..78702d398c75 100644 --- a/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php +++ b/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php @@ -9,7 +9,7 @@ use Drupal\KernelTests\KernelTestBase; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\system\Form\SiteInformationForm; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; use Drupal\Tests\node\Traits\NodeCreationTrait; use Drupal\Tests\user\Traits\UserCreationTrait; @@ -27,7 +27,7 @@ class WorkspaceIntegrationTest extends KernelTestBase { use ContentTypeCreationTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use NodeCreationTrait; use UserCreationTrait; use ViewResultAssertionTrait; diff --git a/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php b/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php index 384932009dd9..21f60b59b6af 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php @@ -3,7 +3,7 @@ namespace Drupal\FunctionalJavascriptTests\EntityReference; use Drupal\FunctionalJavascriptTests\WebDriverTestBase; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\entity_test\Entity\EntityTest; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; @@ -17,7 +17,7 @@ class EntityReferenceAutocompleteWidgetTest extends WebDriverTestBase { use ContentTypeCreationTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use NodeCreationTrait; /** diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php index 96e00d163ef9..47a324030fcf 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php @@ -6,7 +6,7 @@ use Drupal\entity_test\Entity\EntityTest; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; /** * Tests the Entity Query relationship API. @@ -15,7 +15,7 @@ */ class EntityQueryRelationshipTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php index 95d8c6a8eddd..5bf44250cdf9 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php @@ -11,7 +11,7 @@ use Drupal\language\Entity\ConfigurableLanguage; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Symfony\Component\HttpFoundation\Request; /** @@ -21,7 +21,7 @@ */ class EntityQueryTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * Modules to enable. diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php index 9b58c8d0a6b7..7ed01db2666d 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php @@ -10,7 +10,7 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; use Drupal\user\RoleInterface; @@ -25,7 +25,7 @@ class EntityReferenceFieldTest extends EntityKernelTestBase { use SchemaCheckTestTrait; - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * The entity type used in this test. diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php index 027360b3e51d..e794ec95bfa6 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php @@ -10,7 +10,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; use Drupal\language\Entity\ConfigurableLanguage; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\user\Entity\Role; use Drupal\user\RoleInterface; @@ -21,7 +21,7 @@ */ class EntityViewBuilderTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; /** * {@inheritdoc} diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php index 0b7cbbbaa9a0..4b5ae1853b2e 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php @@ -8,7 +8,7 @@ use Drupal\field\Entity\FieldConfig; use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; @@ -20,7 +20,7 @@ */ class ValidReferenceConstraintValidatorTest extends EntityKernelTestBase { - use EntityReferenceTestTrait; + use EntityReferenceFieldCreationTrait; use ContentTypeCreationTrait; /** -- GitLab