GraphQL\Tests\Validator\OverlappingFieldsCanBeMergedTest::testDeepConflict PHP Метод

testDeepConflict() публичный Метод

public testDeepConflict ( )
    public function testDeepConflict()
    {
        $this->expectFailsRule(new OverlappingFieldsCanBeMerged(), '
      {
        field {
          x: a
        },
        field {
          x: b
        }
      }
        ', [FormattedError::create(OverlappingFieldsCanBeMerged::fieldsConflictMessage('field', [['x', 'a and b are different fields']]), [new SourceLocation(3, 9), new SourceLocation(4, 11), new SourceLocation(6, 9), new SourceLocation(7, 11)])]);
    }