66 - Extracting the Failure Case

This commit is contained in:
Adam Wathan
2017-01-18 19:08:49 -05:00
parent 8c38d3c20c
commit dad987b548
3 changed files with 20 additions and 63 deletions

View File

@@ -15,19 +15,6 @@ class FakePaymentGatewayTest extends TestCase
return new FakePaymentGateway;
}
/** @test */
function charges_with_an_invalid_payment_token_fail()
{
try {
$paymentGateway = new FakePaymentGateway;
$paymentGateway->charge(2500, 'invalid-payment-token');
} catch (PaymentFailedException $e) {
return;
}
$this->fail();
}
/** @test */
function running_a_hook_before_the_first_charge()
{