GraphQL\Tests\Validator\FragmentsOnCompositeTypesTest::testScalarIsInvalidInlineFragmentType PHP Method

testScalarIsInvalidInlineFragmentType() public method

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