Skip to content

Commit

Permalink
fix test translation
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Jan 28, 2024
1 parent 631c2a2 commit 4255d5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/src/Kernel/DataProducer/EntityDefinitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\graphql\GraphQL\ResolverBuilder;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\graphql\Kernel\GraphQLTestBase;

Expand Down Expand Up @@ -211,7 +212,7 @@ class EntityDefinitionTest extends GraphQLTestBase {
[
'id' => 'created',
'label' => 'Authored on',
'description' => 'The time that the node was created.',
'description' => 'The date and time that the content was created.',
'type' => 'created',
'required' => FALSE,
'multiple' => FALSE,
Expand Down Expand Up @@ -496,6 +497,11 @@ enum FieldTypes {
'entity_form_display_context' => $builder->fromContext('entity_form_display'),
])
);

// @todo Different description between Drupal 9 and 10, can be removed when
// Drupal 9 support is dropped.
$this->fullDefinitionResult['entityDefinition']['fields'][11]['description'] =
$this->container->get('entity_field.manager')->getBaseFieldDefinitions('node')['created']->getDescription();
}

/**
Expand Down

0 comments on commit 4255d5e

Please sign in to comment.