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

testAllowsNullableInputsToBeSetToAValueDirectly() public method

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