GraphQL\Tests\Validator\ArgumentsOfCorrectTypeTest::testNullIntoNullableType PHP Метод

testNullIntoNullableType() публичный Метод

    public function testNullIntoNullableType()
    {
        $this->expectPassesRule(new ArgumentsOfCorrectType(), '
        {
          complicatedArgs {
            intArgField(intArg: null)
          }
        }
        ');
        $this->expectPassesRule(new ArgumentsOfCorrectType(), '
        {
          dog(a: null, b: null, c:{ requiredField: true, intField: null }) {
            name
          }
        }
        ');
    }
ArgumentsOfCorrectTypeTest