public function testEncountersConflictInFragments()
{
$this->expectFailsRule(new OverlappingFieldsCanBeMerged(), '
{
...A
...B
}
fragment A on Type {
x: a
}
fragment B on Type {
x: b
}
', [FormattedError::create(OverlappingFieldsCanBeMerged::fieldsConflictMessage('x', 'a and b are different fields'), [new SourceLocation(7, 9), new SourceLocation(10, 9)])]);
}