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

testAllowsNullableInputsToBeOmitted() public method

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