diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-01 04:05:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-01 04:05:51 +0300 |
commit | 59d9b799fa5bf3c8ba99cc6f703b83751f1d3497 (patch) | |
tree | 16b29e2afda9f223f36e6a7d3f4659fb72d3d7e6 /src/unittests/resources/map/maplayer/drawspeciallayer2.cc | |
parent | b9ce7a70632f31a3a4b29841ab034dbb297b295d (diff) | |
download | mv-59d9b799fa5bf3c8ba99cc6f703b83751f1d3497.tar.gz mv-59d9b799fa5bf3c8ba99cc6f703b83751f1d3497.tar.bz2 mv-59d9b799fa5bf3c8ba99cc6f703b83751f1d3497.tar.xz mv-59d9b799fa5bf3c8ba99cc6f703b83751f1d3497.zip |
Fix unit tests after last changes in configuration.cpp
Diffstat (limited to 'src/unittests/resources/map/maplayer/drawspeciallayer2.cc')
-rw-r--r-- | src/unittests/resources/map/maplayer/drawspeciallayer2.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unittests/resources/map/maplayer/drawspeciallayer2.cc b/src/unittests/resources/map/maplayer/drawspeciallayer2.cc index 0092b2019..ec101a099 100644 --- a/src/unittests/resources/map/maplayer/drawspeciallayer2.cc +++ b/src/unittests/resources/map/maplayer/drawspeciallayer2.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 (tempLayer)", "") 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; |