You are here

EntityPropertyConflict.php in GraphQL 8.3

File

modules/graphql_core/tests/src/Kernel/Entity/EntityPropertyConflict.php
View source
<?php

namespace Drupal\Tests\graphql_core\Kernel\Entity;

use Drupal\Tests\graphql_core\Kernel\GraphQLContentTestBase;

/**
 * Test entity property naming conflict resolution.
 *
 * @group graphql_core
 */
class EntityPropertyConflict extends GraphQLContentTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'comment',
  ];

  /**
   * Check proper behavior in case of a naming conflict.
   */
  public function testNamingConflict() {
    $this
      ->assertGraphQLFields([
      [
        'Comment',
        'entityId',
        'String',
      ],
      [
        'Comment',
        'entityIdOfComment',
        'FieldCommentEntityId',
      ],
    ]);
  }

}

Classes

Namesort descending Description
EntityPropertyConflict Test entity property naming conflict resolution.