public function getType($name)
{
$map = $this->getTypeMap();
return isset($map[$name]) ? $map[$name] : null;
}
public function testIncludesInterfaceSubtypesInTheTypeMap() { $someInterface = new InterfaceType(['name' => 'SomeInterface', 'fields' => []]); $someSubtype = new ObjectType(['name' => 'SomeSubtype', 'fields' => [], 'interfaces' => [$someInterface]]); $schema = new Schema($someInterface); $this->assertSame($someSubtype, $schema->getType('SomeSubtype')); }