GraphQL\Tests\Validator\DefaultValuesOfCorrectTypeTest::testNoRequiredVariablesWithDefaultValues PHP Method

testNoRequiredVariablesWithDefaultValues() public method

    public function testNoRequiredVariablesWithDefaultValues()
    {
        $this->expectFailsRule(new DefaultValuesOfCorrectType(), '
      query UnreachableDefaultValues($a: Int! = 3, $b: String! = "default") {
        dog { name }
      }
        ', [$this->defaultForNonNullArg('a', 'Int!', 'Int', 2, 49), $this->defaultForNonNullArg('b', 'String!', 'String', 2, 66)]);
    }