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

testAllowsNonNullableInputsToBeSetToAValueDirectly() public method

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