static public inlineFragmentOnNonCompositeErrorMessage ( $typeName ) |
public function testScalarIsInvalidInlineFragmentType() { $this->expectFailsRule(new FragmentsOnCompositeTypes(), ' fragment invalidFragment on Pet { ... on String { barks } } ', [new FormattedError(Messages::inlineFragmentOnNonCompositeErrorMessage('String'), [new SourceLocation(3, 16)])]); }