public function testReportsErrorsWhenTypeIsKnownAgain()
{
$this->expectFailsRule(new FieldsOnCorrectType(), '
fragment typeKnownAgain on Pet {
unknown_pet_field {
... on Cat {
unknown_cat_field
}
}
}', [$this->undefinedField('unknown_pet_field', 'Pet', [], 3, 9), $this->undefinedField('unknown_cat_field', 'Cat', [], 5, 13)]);
}