Skip to content

Commit

Permalink
use unique key for provider key
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Aug 19, 2024
1 parent 51951b4 commit 02fb4cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function testCreateRandomTitle(): void {
*/
public static function providerTaxonomyFieldValues(): array {
return [
'Test content entity reference' => [
'Taxonomy Test content entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_taxonomy_term',
Expand All @@ -259,7 +259,7 @@ public static function providerTaxonomyFieldValues(): array {
'label' => 'Test content entity reference',
],
],
'Test config entity reference' => [
'Taxonomy Test config entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_taxonomy_term',
Expand All @@ -271,7 +271,7 @@ public static function providerTaxonomyFieldValues(): array {
'cardinality' => 1,
],
],
'Test node entity reference' => [
'Taxonomy Test node entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_node',
Expand All @@ -283,7 +283,7 @@ public static function providerTaxonomyFieldValues(): array {
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
],
],
'Test node page only entity reference' => [
'Taxonomy Test node page only entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_node',
Expand All @@ -297,7 +297,7 @@ public static function providerTaxonomyFieldValues(): array {
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
],
],
'Test user entity reference' => [
'Taxonomy Test user entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_user',
Expand All @@ -306,7 +306,7 @@ public static function providerTaxonomyFieldValues(): array {
'label' => 'Test user entity reference',
],
],
'Test file entity reference' => [
'Taxonomy Test file entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_file',
Expand All @@ -315,7 +315,7 @@ public static function providerTaxonomyFieldValues(): array {
'label' => 'Test file entity reference',
],
],
'Test content custom entity reference with string ID' => [
'Taxonomy Test content custom entity reference with string ID' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_entity_test_string_id',
Expand All @@ -324,7 +324,7 @@ public static function providerTaxonomyFieldValues(): array {
'label' => 'Test content custom entity reference with string ID',
],
],
'Test content custom entity reference' => [
'Taxonomy Test content custom entity reference' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_test_entity_test',
Expand Down
20 changes: 10 additions & 10 deletions tests/src/Kernel/FactoryType/EntityFieldFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,79 +250,79 @@ public function testCreateRandomTitle(): void {
*/
public static function providerTaxonomyFieldValues(): array {
return [
'text field' => [
'Taxonomy text field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'text',
],
],
'boolean field' => [
'Taxonomy boolean field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'boolean',
],
],
'string field' => [
'Taxonomy string field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'string',
],
],
'string long field' => [
'Taxonomy string long field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'string_long',
],
],
'integer field' => [
'Taxonomy integer field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'integer',
],
],
'float field' => [
'Taxonomy float field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'float',
],
],
'decimal field' => [
'Taxonomy decimal field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'decimal',
],
],
'email field' => [
'Taxonomy email field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'email',
],
],
'datetime field' => [
'Taxonomy datetime field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
'bundle' => 'tags',
'type' => 'datetime',
],
],
'daterange field' => [
'Taxonomy daterange field' => [
[
'entity_type' => 'taxonomy_term',
'name' => 'field_foo',
Expand Down

0 comments on commit 02fb4cd

Please sign in to comment.