From c53f473bcbebbe30fc0d310c77b122e140d3f757 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Aug 2017 18:23:58 +0300 Subject: Fix some unit tests. --- .../resources/map/maplayer/updateconditiontiles.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/unittests/resources/map/maplayer/updateconditiontiles.cc') diff --git a/src/unittests/resources/map/maplayer/updateconditiontiles.cc b/src/unittests/resources/map/maplayer/updateconditiontiles.cc index 62535d351..73ed58108 100644 --- a/src/unittests/resources/map/maplayer/updateconditiontiles.cc +++ b/src/unittests/resources/map/maplayer/updateconditiontiles.cc @@ -20,8 +20,14 @@ #include "unittests/unittests.h" +#include "configmanager.h" +#include "dirs.h" +#include "logger.h" + #include "enums/resources/map/blockmask.h" +#include "utils/delete2.h" + #include "resources/image/image.h" #include "resources/map/map.h" @@ -31,6 +37,13 @@ TEST_CASE("MapLayer updateConditionTiles", "") { + logger = new Logger; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + ConfigManager::initConfiguration(); + Image *const img1 = new Image(32, 32); Map *map = nullptr; MapLayer *layer = nullptr; @@ -220,4 +233,5 @@ TEST_CASE("MapLayer updateConditionTiles", "") delete map; delete img1; + delete2(logger); } -- cgit v1.2.3-70-g09d2