GraphQL\Tests\Validator\OverlappingFieldsCanBeMergedTest::testVeryDeepConflict PHP Method

testVeryDeepConflict() public method

    public function testVeryDeepConflict()
    {
        $this->expectFailsRule(new OverlappingFieldsCanBeMerged(), '
      {
        field {
          deepField {
            x: a
          }
        },
        field {
          deepField {
            x: b
          }
        }
      }
        ', [FormattedError::create(OverlappingFieldsCanBeMerged::fieldsConflictMessage('field', [['deepField', [['x', 'a and b are different fields']]]]), [new SourceLocation(3, 9), new SourceLocation(4, 11), new SourceLocation(5, 13), new SourceLocation(8, 9), new SourceLocation(9, 11), new SourceLocation(10, 13)])]);
    }