Completed
Pull Request — 8.x-3.x (#556)
by Philipp
05:30 queued 02:59
created

EntityPropertyConflict::testNamingConflict()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Drupal\Tests\graphql_core\Kernel\Entity;
4
5
use Drupal\Tests\graphql_core\Kernel\GraphQLContentTestBase;
6
7
/**
8
 * Test entity property naming conflict resolution.
9
 *
10
 * @group graphql_core
11
 */
12
class EntityPropertyConflict extends GraphQLContentTestBase {
13
14
  /**
15
   * {@inheritdoc}
16
   */
17
  public static $modules = [
18
    'comment',
19
  ];
20
21
  /**
22
   * Check proper behavior in case of a naming conflict.
23
   */
24
  public function testNamingConflict() {
25
    $this->assertGraphQLFields([
26
      ['Comment', 'entityId', 'String'],
27
      ['Comment', 'entityIdOfComment', 'FieldCommentEntityId'],
28
    ]);
29
  }
30
31
}
32