From db2c855bf9d54fe512fa695ee6bf6c314331fe7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Mar 2017 20:39:23 +0300 Subject: Add configuration path initialisation in tests where it need. --- src/gui/widgets/browserbox_unittest.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui') diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index 8f4c04aa7..cf74186b6 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -20,6 +20,9 @@ #include "catch.hpp" #include "client.h" +#include "configuration.h" +#include "configmanager.h" +#include "dirs.h" #include "graphicsmanager.h" #include "being/actorsprite.h" @@ -65,6 +68,13 @@ TEST_CASE("BrowserBox tests", "browserbox") theme = new Theme; Theme::selectSkin(); + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + ConfigManager::initConfiguration(); + getConfigDefaults2(config.getDefaultValues()); + ActorSprite::load(); gui = new Gui(); gui->postInit(mainGraphics); -- cgit v1.2.3-70-g09d2