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

testVariablesWithValidDefaultNullValues() public method

    public function testVariablesWithValidDefaultNullValues()
    {
        $this->expectPassesRule(new DefaultValuesOfCorrectType(), '
      query WithDefaultValues(
        $a: Int = null,
        $b: String = null,
        $c: ComplexInput = { requiredField: true, intField: null }
      ) {
        dog { name }
      }
        ');
    }