summaryrefslogtreecommitdiff
path: root/src/utils/xml_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-18 01:55:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-18 01:55:23 +0300
commitbe8edccc37bb2ce0b17cc950129cd57d65aac49a (patch)
tree00badff35ec2ea5797043ec2b4bcec5496c883e2 /src/utils/xml_unittest.cc
parent91cd49664d1dbe1bdea78541fcdf4bd3ec94f22a (diff)
downloadplus-be8edccc37bb2ce0b17cc950129cd57d65aac49a.tar.gz
plus-be8edccc37bb2ce0b17cc950129cd57d65aac49a.tar.bz2
plus-be8edccc37bb2ce0b17cc950129cd57d65aac49a.tar.xz
plus-be8edccc37bb2ce0b17cc950129cd57d65aac49a.zip
Fix unit tests after default theme was changed.
Diffstat (limited to 'src/utils/xml_unittest.cc')
-rw-r--r--src/utils/xml_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/xml_unittest.cc b/src/utils/xml_unittest.cc
index 1d4aa52cc..cd5346954 100644
--- a/src/utils/xml_unittest.cc
+++ b/src/utils/xml_unittest.cc
@@ -77,14 +77,15 @@ TEST_CASE("xml doc", "")
graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE);
#endif // USE_SDL2
- theme = new Theme;
- Theme::selectSkin();
-
Dirs::initRootDir();
Dirs::initHomeDir();
ConfigManager::initConfiguration();
getConfigDefaults2(config.getDefaultValues());
+ branding.setDefaultValues(getBrandingDefaults());
+
+ theme = new Theme;
+ Theme::selectSkin();
const char *const tempXmlName = "tempxml.xml";
ActorSprite::load();