protected function getTestObjectType()
{
if (!$this->testObject) {
$this->testObject = new ObjectType(['name' => 'TestObject', 'fields' => ['name' => ['type' => Type::string(), 'resolve' => function () {
return 'testname';
}]], 'interfaces' => [$this->getLazyInterfaceType()]]);
}
return $this->testObject;
}