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

getUser() public method

Setup a mock user
public getUser ( array $attributes = [] ) : ElggUser
$attributes array An array of attributes
return ElggUser
    public function getUser(array $attributes = array())
    {
        $subtype = isset($attributes['subtype']) ? $attributes['subtype'] : 'foo_user';
        return $this->entityTable->setup(null, 'user', $subtype, $attributes);
    }