Completed
Pull Request — 8.x-3.x (#556)
by Philipp
03:20 queued 53s
created

EntityPropertyConflict   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNamingConflict() 0 6 1
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