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:
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue