summaryrefslogtreecommitdiff
path: root/src/unittests/resources/map/maplayer/draw.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/resources/map/maplayer/draw.cc')
-rw-r--r--src/unittests/resources/map/maplayer/draw.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unittests/resources/map/maplayer/draw.cc b/src/unittests/resources/map/maplayer/draw.cc
index e7410e22e..ac7fba9b7 100644
--- a/src/unittests/resources/map/maplayer/draw.cc
+++ b/src/unittests/resources/map/maplayer/draw.cc
@@ -20,8 +20,13 @@
#include "unittests/unittests.h"
+#include "configmanager.h"
+#include "dirs.h"
+
#include "unittests/render/mockgraphics.h"
+#include "utils/delete2.h"
+
#include "resources/image/image.h"
#include "resources/map/map.h"
@@ -31,6 +36,13 @@
TEST_CASE("MapLayer draw", "")
{
+ logger = new Logger;
+
+ Dirs::initRootDir();
+ Dirs::initHomeDir();
+
+ ConfigManager::initConfiguration();
+
Image *const img1 = new Image(32, 32);
Image *const img2 = new Image(32, 32);
Image *const img3 = new Image(32, 32);