GraphQL\Tests\Executor\VariablesTest::testAllowsNullableInputsToBeOmittedInAVariable PHP Method

testAllowsNullableInputsToBeOmittedInAVariable() public method

    public function testAllowsNullableInputsToBeOmittedInAVariable()
    {
        $doc = '
      query SetsNullable($value: String) {
        fieldWithNullableStringInput(input: $value)
      }
        ';
        $ast = Parser::parse($doc);
        $expected = ['data' => ['fieldWithNullableStringInput' => null]];
        $this->assertEquals($expected, Executor::execute($this->schema(), $ast)->toArray());
    }