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:
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;