mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-18 16:54:36 +00:00
164 - Paying Promoters Directly
This commit is contained in:
@@ -34,11 +34,11 @@ class FakePaymentGatewayTest extends TestCase
|
||||
|
||||
$paymentGateway->beforeFirstCharge(function ($paymentGateway) use (&$timesCallbackRan) {
|
||||
$timesCallbackRan++;
|
||||
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken());
|
||||
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken(), 'test_acct_1234');
|
||||
$this->assertEquals(2500, $paymentGateway->totalCharges());
|
||||
});
|
||||
|
||||
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken());
|
||||
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken(), 'test_acct_1234');
|
||||
$this->assertEquals(1, $timesCallbackRan);
|
||||
$this->assertEquals(5000, $paymentGateway->totalCharges());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user