Elgg\Mocks\Di\MockServiceProvider::getObject PHP Method

getObject() public method

Setup a mock object
public getObject ( array $attributes = [] ) : ElggObject
$attributes array An array of attributes
return ElggObject
    public function getObject(array $attributes = array())
    {
        $subtype = isset($attributes['subtype']) ? $attributes['subtype'] : 'foo_object';
        return $this->entityTable->setup(null, 'object', $subtype, $attributes);
    }