summaryrefslogtreecommitdiff
path: root/src/unittests/integrity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/integrity.cc')
-rw-r--r--src/unittests/integrity.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/unittests/integrity.cc b/src/unittests/integrity.cc
index 02682f537..a750959dc 100644
--- a/src/unittests/integrity.cc
+++ b/src/unittests/integrity.cc
@@ -20,6 +20,7 @@
#include "unittests/unittests.h"
+#include "configmanager.h"
#include "configuration.h"
#include "client.h"
#include "dirs.h"
@@ -32,7 +33,6 @@
#include "fs/virtfs/fs.h"
#include "fs/virtfs/rwops.h"
-#include "gui/gui.h"
#include "gui/userpalette.h"
#include "gui/theme.h"
@@ -137,13 +137,17 @@ TEST_CASE("integrity tests", "integrity")
#endif // USE_SDL2
userPalette = new UserPalette;
- config.setValue("fontSize", 16);
- theme = new Theme;
- Theme::selectSkin();
Dirs::initRootDir();
Dirs::initHomeDir();
+ setBrandingDefaults(branding);
+ ConfigManager::initConfiguration();
+
+ config.setValue("fontSize", 16);
+ theme = new Theme;
+ Theme::selectSkin();
+
ActorSprite::load();
const char *const name1 = "dir/hide.png";
const int size1 = 368;