diff --git a/tests/carddatabase/filter_tree_test.cpp b/tests/carddatabase/filter_tree_test.cpp index c6fcdfe0a..a30cca9de 100644 --- a/tests/carddatabase/filter_tree_test.cpp +++ b/tests/carddatabase/filter_tree_test.cpp @@ -26,18 +26,18 @@ class FilterTreeTest : public ::testing::Test protected: void SetUp() override { - CardDatabase *db = new CardDatabase(nullptr, new NoopCardPreferenceProvider(), - new TestCardDatabasePathProvider(), new NoopCardSetPriorityController()); - db->loadCardDatabases(); - language = CardSearchLanguage{}; - island = db->query()->getCardBySimpleName("Island"); - artifact = db->query()->getCardBySimpleName("Artifact"); - truth = db->query()->getCardBySimpleName("Truth"); - notDead = db->query()->getCardBySimpleName("Not Dead"); - wallOfDenial = db->query()->getCardBySimpleName("Wall of Denial"); - maelstromAngel = db->query()->getCardBySimpleName("Maelstrom Archangel"); + island = CardInfo::newInstance("Island", "", false, {{"colors", ""}, {"coloridentity", "U"}}, {}, {}, {}, {}); + artifact = + CardInfo::newInstance("Artifact", "", false, {{"colors", ""}, {"coloridentity", ""}}, {}, {}, {}, {}); + truth = CardInfo::newInstance("Truth", "", false, {{"colors", "U"}, {"coloridentity", "U"}}, {}, {}, {}, {}); + notDead = + CardInfo::newInstance("Not Dead", "", false, {{"colors", "B"}, {"coloridentity", "B"}}, {}, {}, {}, {}); + wallOfDenial = CardInfo::newInstance("Wall of Denial", "", false, {{"colors", "WU"}, {"coloridentity", "WU"}}, + {}, {}, {}, {}); + maelstromAngel = CardInfo::newInstance("Maelstrom Archangel", "", false, + {{"colors", "WUBRG"}, {"coloridentity", "WUBRG"}}, {}, {}, {}, {}); } CardSearchLanguage language;