diff options
Diffstat (limited to 'editor/editor_tests/editor_config_test.cpp')
-rw-r--r-- | editor/editor_tests/editor_config_test.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/editor/editor_tests/editor_config_test.cpp b/editor/editor_tests/editor_config_test.cpp index 329ea1488f..92faae7725 100644 --- a/editor/editor_tests/editor_config_test.cpp +++ b/editor/editor_tests/editor_config_test.cpp @@ -1,5 +1,6 @@ #include "testing/testing.hpp" +#include "editor/config_loader.hpp" #include "editor/editor_config.hpp" #include "base/stl_helpers.hpp" @@ -20,7 +21,11 @@ UNIT_TEST(EditorConfig_TypeDescription) feature::Metadata::FMD_EMAIL }; + pugi::xml_document doc; + ConfigLoader::LoadFromLocal(doc); + EditorConfig config; + config.SetConfig(doc); { editor::TypeAggregatedDescription desc; @@ -57,9 +62,13 @@ UNIT_TEST(EditorConfig_TypeDescription) // TODO(mgsergio): Test case with priority="high" when there is one on editor.config. } -UNIT_TEST(EditorConfig_GetTypesThatGenBeAdded) +UNIT_TEST(EditorConfig_GetTypesThatCanBeAdded) { + pugi::xml_document doc; + ConfigLoader::LoadFromLocal(doc); + EditorConfig config; + config.SetConfig(doc); auto const types = config.GetTypesThatCanBeAdded(); TEST(find(begin(types), end(types), "amenity-cafe") != end(types), ()); |