GraphQL\Tests\Validator\VariablesAreInputTypesTest::testOutputTypesAreInvalid PHP Method

testOutputTypesAreInvalid() public method

    public function testOutputTypesAreInvalid()
    {
        $this->expectFailsRule(new VariablesAreInputTypes(), '
      query Foo($a: Dog, $b: [[CatOrDog!]]!, $c: Pet) {
        field(a: $a, b: $b, c: $c)
      }
        ', [FormattedError::create(VariablesAreInputTypes::nonInputTypeOnVarMessage('a', 'Dog'), [new SourceLocation(2, 21)]), FormattedError::create(VariablesAreInputTypes::nonInputTypeOnVarMessage('b', '[[CatOrDog!]]!'), [new SourceLocation(2, 30)]), FormattedError::create(VariablesAreInputTypes::nonInputTypeOnVarMessage('c', 'Pet'), [new SourceLocation(2, 50)])]);
    }