mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for tests
This commit is contained in:
parent
ba2f78dad0
commit
895cc7d926
@ -98,5 +98,7 @@ class PaymentFailureMailer implements ShouldQueue
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//add client payment failures here.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,6 +116,11 @@ class CreditCard
|
|||||||
throw new PaymentFailed(ctrans('texts.generic_gateway_error'), $e->getCode());
|
throw new PaymentFailed(ctrans('texts.generic_gateway_error'), $e->getCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PaymentFailureMailer::dispatch($this->braintree->client,
|
||||||
|
$e->getMessage(),
|
||||||
|
$this->braintree->client->company,
|
||||||
|
$this->braintree->payment_hash->data->amount_with_fee);
|
||||||
|
|
||||||
throw new PaymentFailed($e->getMessage(), $e->getCode());
|
throw new PaymentFailed($e->getMessage(), $e->getCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,13 +202,6 @@ class CreditCard
|
|||||||
{
|
{
|
||||||
PaymentFailureMailer::dispatch($this->braintree->client, $response->transaction->additionalProcessorResponse, $this->braintree->client->company, $this->braintree->payment_hash->data->amount_with_fee);
|
PaymentFailureMailer::dispatch($this->braintree->client, $response->transaction->additionalProcessorResponse, $this->braintree->client->company, $this->braintree->payment_hash->data->amount_with_fee);
|
||||||
|
|
||||||
PaymentFailureMailer::dispatch(
|
|
||||||
$this->braintree->client,
|
|
||||||
$response,
|
|
||||||
$this->braintree->client->company,
|
|
||||||
$this->braintree->payment_hash->data->amount_with_fee,
|
|
||||||
);
|
|
||||||
|
|
||||||
$message = [
|
$message = [
|
||||||
'server_response' => $response,
|
'server_response' => $response,
|
||||||
'data' => $this->braintree->payment_hash->data,
|
'data' => $this->braintree->payment_hash->data,
|
||||||
|
@ -397,7 +397,7 @@ trait MockAccountData
|
|||||||
$this->quote = $this->quote_calc->getQuote();
|
$this->quote = $this->quote_calc->getQuote();
|
||||||
|
|
||||||
$this->quote->status_id = Quote::STATUS_SENT;
|
$this->quote->status_id = Quote::STATUS_SENT;
|
||||||
$this->quote->number = $this->getNextQuoteNumber($this->client);
|
$this->quote->number = $this->getNextQuoteNumber($this->client, $this->quote);
|
||||||
|
|
||||||
//$this->quote->service()->createInvitations()->markSent();
|
//$this->quote->service()->createInvitations()->markSent();
|
||||||
|
|
||||||
@ -448,7 +448,7 @@ trait MockAccountData
|
|||||||
|
|
||||||
$this->client->service()->adjustCreditBalance($this->credit->balance)->save();
|
$this->client->service()->adjustCreditBalance($this->credit->balance)->save();
|
||||||
$this->credit->ledger()->updateCreditBalance($this->credit->balance)->save();
|
$this->credit->ledger()->updateCreditBalance($this->credit->balance)->save();
|
||||||
$this->credit->number = $this->getNextCreditNumber($this->client);
|
$this->credit->number = $this->getNextCreditNumber($this->client, $this->credit);
|
||||||
|
|
||||||
|
|
||||||
CreditInvitation::factory()->create([
|
CreditInvitation::factory()->create([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user