mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
Removed database dependency
This commit is contained in:
parent
1a46aeaaff
commit
722d7340f1
1 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue