mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-04 19:48:42 +00:00
66 - Extracting the Failure Case
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user