GraphQL\Tests\Executor\LazyInterfaceTest::getTestObjectType PHP Method

getTestObjectType() protected method

Returns the test ObjectType
protected getTestObjectType ( ) : ObjectType
return GraphQL\Type\Definition\ObjectType
    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;
    }