164 - Paying Promoters Directly

This commit is contained in:
Adam Wathan
2018-01-26 11:58:50 -05:00
parent 0db962d04c
commit 7442baa5c5
6 changed files with 14 additions and 14 deletions

View File

@@ -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());
}