GraphQL\Tests\Utils\ValueFromAstTest::testOmitsInputObjectFieldsForUnprovidedVariables PHP Method

testOmitsInputObjectFieldsForUnprovidedVariables() public method

    public function testOmitsInputObjectFieldsForUnprovidedVariables()
    {
        $testInputObj = $this->inputObj();
        $this->runTestCaseWithVars([], $testInputObj, '{ int: $foo, bool: $foo, requiredBool: true }', ['int' => 42, 'requiredBool' => true]);
        $this->runTestCaseWithVars([], $testInputObj, '{ requiredBool: $foo }', Utils::undefined());
        $this->runTestCaseWithVars(['foo' => true], $testInputObj, '{ requiredBool: $foo }', ['int' => 42, 'requiredBool' => true]);
    }