public function setUp()
{
$this->actionsDir = dirname(dirname(__FILE__)) . "/test_files/actions";
$session = ElggSession::getMock();
_elgg_services()->setValue('session', $session);
_elgg_services()->session->start();
$config = $this->config();
_elgg_services()->setValue('config', $config);
$this->input = new Input();
_elgg_services()->setValue('input', $this->input);
$this->actions = new ActionsService($config, $session, _elgg_services()->crypto);
_elgg_services()->setValue('actions', $this->actions);
$this->request = $this->prepareHttpRequest();
_elgg_services()->setValue('request', $this->request);
$this->translator = new Translator();
$this->translator->addTranslation('en', ['__test__' => 'Test']);
$this->hooks = new PluginHooksService();
$this->system_messages = new SystemMessagesService(elgg_get_session());
_elgg_services()->logger->disable();
}