From b002cc8112ab2cb5a9310fcb4ff443de87aa0c35 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 14 Jun 2012 20:20:56 +0400 Subject: [PATCH] Failing test for copying creature that should enter tapped --- .../test/cards/copy/PhantasmalImageTest.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/copy/PhantasmalImageTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/copy/PhantasmalImageTest.java index 110172b306f..6391bbb2bb2 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/copy/PhantasmalImageTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/copy/PhantasmalImageTest.java @@ -143,4 +143,28 @@ public class PhantasmalImageTest extends CardTestPlayerBase { assertGraveyardCount(playerB, "Phantasmal Image", 1); } + /** + * Tests that copy of Geralf's Messenger also enters tapped + * Geralf's Messenger: Geralf's Messenger enters the battlefield tapped + */ + @Test + public void testCopyEntersTapped() { + addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 2); + addCard(Constants.Zone.HAND, playerA, "Phantasmal Image"); + addCard(Constants.Zone.BATTLEFIELD, playerB, "Geralf's Messenger"); + + castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Phantasmal Image"); + + setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT); + execute(); + + Permanent copy = getPermanent("Geralf's Messenger", playerA.getId()); + Assert.assertNotNull(copy); + Assert.assertTrue("Should be tapped", copy.isTapped()); + + // Tests: When Geralf's Messenger enters the battlefield, target opponent loses 2 life. + assertLife(playerB, 18); + assertLife(playerA, 18); + } + }