Removed database dependency

This commit is contained in:
Jurriaan van den Berg 2026-11-02 17:14:19 +01:00
parent 1a46aeaaff
commit 722d7340f1

View file

@ -26,18 +26,18 @@ class FilterTreeTest : public ::testing::Test
protected: protected:
void SetUp() override void SetUp() override
{ {
CardDatabase *db = new CardDatabase(nullptr, new NoopCardPreferenceProvider(),
new TestCardDatabasePathProvider(), new NoopCardSetPriorityController());
db->loadCardDatabases();
language = CardSearchLanguage{}; language = CardSearchLanguage{};
island = db->query()->getCardBySimpleName("Island"); island = CardInfo::newInstance("Island", "", false, {{"colors", ""}, {"coloridentity", "U"}}, {}, {}, {}, {});
artifact = db->query()->getCardBySimpleName("Artifact"); artifact =
truth = db->query()->getCardBySimpleName("Truth"); CardInfo::newInstance("Artifact", "", false, {{"colors", ""}, {"coloridentity", ""}}, {}, {}, {}, {});
notDead = db->query()->getCardBySimpleName("Not Dead"); truth = CardInfo::newInstance("Truth", "", false, {{"colors", "U"}, {"coloridentity", "U"}}, {}, {}, {}, {});
wallOfDenial = db->query()->getCardBySimpleName("Wall of Denial"); notDead =
maelstromAngel = db->query()->getCardBySimpleName("Maelstrom Archangel"); 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; CardSearchLanguage language;