public function testSupportsThe__typeRootField()
{
$TestType = new ObjectType(['name' => 'TestType', 'fields' => ['testField' => ['type' => Type::string()]]]);
$schema = new Schema(['query' => $TestType]);
$request = '
{
__type(name: "TestType") {
name
}
}
';
$expected = ['data' => ['__type' => ['name' => 'TestType']]];
$this->assertEquals($expected, GraphQL::execute($schema, $request));
}