summaryrefslogtreecommitdiff
path: root/src/unittests/resources/map/maplayer/updateconditiontiles.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-31 18:23:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-31 18:23:58 +0300
commitc53f473bcbebbe30fc0d310c77b122e140d3f757 (patch)
tree2b62b93da5f3101df29d2584866165d575b693a4 /src/unittests/resources/map/maplayer/updateconditiontiles.cc
parenteb082b22760c35e62a5fd2faf8fbc743ad57ea8e (diff)
downloadplus-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.gz
plus-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.bz2
plus-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.xz
plus-c53f473bcbebbe30fc0d310c77b122e140d3f757.zip
Fix some unit tests.
Diffstat (limited to 'src/unittests/resources/map/maplayer/updateconditiontiles.cc')
-rw-r--r--src/unittests/resources/map/maplayer/updateconditiontiles.cc14
1 files changed, 14 insertions, 0 deletions
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);
}