mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-06 03:49:22 +00:00
164 - Paying Promoters Directly
This commit is contained in:
@@ -76,11 +76,11 @@ class ReservationTest extends TestCase
|
||||
$reservation = new Reservation($tickets, 'john@example.com');
|
||||
$paymentGateway = new FakePaymentGateway;
|
||||
|
||||
$order = $reservation->complete($paymentGateway, $paymentGateway->getValidTestToken());
|
||||
$order = $reservation->complete($paymentGateway, $paymentGateway->getValidTestToken(), 'test_acct_1234');
|
||||
|
||||
$this->assertEquals('john@example.com', $order->email);
|
||||
$this->assertEquals(3, $order->ticketQuantity());
|
||||
$this->assertEquals(3600, $order->amount);
|
||||
$this->assertEquals(3600, $paymentGateway->totalCharges());
|
||||
$this->assertEquals(3600, $paymentGateway->totalChargesFor('test_acct_1234'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user