From 59d9b799fa5bf3c8ba99cc6f703b83751f1d3497 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Sep 2017 04:05:51 +0300 Subject: Fix unit tests after last changes in configuration.cpp --- src/unittests/resources/map/maplayer/drawspeciallayer1.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/unittests/resources/map/maplayer/drawspeciallayer1.cc') diff --git a/src/unittests/resources/map/maplayer/drawspeciallayer1.cc b/src/unittests/resources/map/maplayer/drawspeciallayer1.cc index 3224eb5ef..2927deb48 100644 --- a/src/unittests/resources/map/maplayer/drawspeciallayer1.cc +++ b/src/unittests/resources/map/maplayer/drawspeciallayer1.cc @@ -20,6 +20,9 @@ #include "unittests/unittests.h" +#include "configmanager.h" +#include "configuration.h" +#include "dirs.h" #include "graphicsmanager.h" #include "enums/resources/map/mapitemtype.h" @@ -59,6 +62,12 @@ TEST_CASE("MapLayer drawSpecialLayer (specialLayer)", "") graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); #endif // USE_SDL2 + Dirs::initRootDir(); + Dirs::initHomeDir(); + + setBrandingDefaults(branding); + ConfigManager::initConfiguration(); + Map *map = nullptr; MapLayer *layer = nullptr; SpecialLayer *specialLayer = nullptr; -- cgit v1.2.3-60-g2f50