You are here

public function EntityPropertyConflict::testNamingConflict in GraphQL 8.3

Check proper behavior in case of a naming conflict.

File

modules/graphql_core/tests/src/Kernel/Entity/EntityPropertyConflict.php, line 24

Class

EntityPropertyConflict
Test entity property naming conflict resolution.

Namespace

Drupal\Tests\graphql_core\Kernel\Entity

Code

public function testNamingConflict() {
  $this
    ->assertGraphQLFields([
    [
      'Comment',
      'entityId',
      'String',
    ],
    [
      'Comment',
      'entityIdOfComment',
      'FieldCommentEntityId',
    ],
  ]);
}