public function testUsesTheSubscriptionSchemaForSubscriptions()
{
$doc = 'query Q { a } subscription S { a }';
$data = ['a' => 'b', 'c' => 'd'];
$ast = Parser::parse($doc);
$schema = new Schema(['query' => new ObjectType(['name' => 'Q', 'fields' => ['a' => ['type' => Type::string()]]]), 'subscription' => new ObjectType(['name' => 'S', 'fields' => ['a' => ['type' => Type::string()]]])]);
$subscriptionResult = Executor::execute($schema, $ast, $data, null, [], 'S');
$this->assertEquals(['data' => ['a' => 'b']], $subscriptionResult->toArray());
}