mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
6.7 - Replicating the Failure at the Unit Level
This commit is contained in:
@@ -20,7 +20,9 @@ class FakePaymentGateway implements PaymentGateway
|
||||
public function charge($amount, $token)
|
||||
{
|
||||
if ($this->beforeFirstChargeCallback !== null) {
|
||||
$this->beforeFirstChargeCallback->__invoke($this);
|
||||
$callback = $this->beforeFirstChargeCallback;
|
||||
$this->beforeFirstChargeCallback = null;
|
||||
$callback($this);
|
||||
}
|
||||
|
||||
if ($token !== $this->getValidTestToken()) {
|
||||
|
||||
Reference in New Issue
Block a user