public function testDateInput($query, $expected)
{
$schema = new Schema(['query' => new ObjectType(['name' => 'RootQuery', 'fields' => ['stringQuery' => ['type' => new StringType(), 'args' => ['from' => new DateTimeType(), 'fromtz' => new DateTimeTzType()], 'resolve' => function ($source, $args) {
return sprintf('Result with %s date and %s tz', empty($args['from']) ? 'default' : $args['from'], empty($args['fromtz']) ? 'default' : $args['fromtz']);
}]]])]);
$processor = new Processor($schema);
$processor->processPayload($query);
$result = $processor->getResponseData();
$this->assertEquals($expected, $result);
}