mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for payment tests
This commit is contained in:
parent
d919134bb9
commit
8bddb49e6c
@ -83,7 +83,6 @@ class PaymentAppliedValidAmount implements Rule
|
||||
$invoice_amounts += $invoice['amount'];
|
||||
|
||||
$inv = $inv_collection->firstWhere('id', $invoice['invoice_id']);
|
||||
nlog($inv);
|
||||
|
||||
if($inv->balance < $invoice['amount']) {
|
||||
|
||||
|
@ -1392,8 +1392,6 @@ class PaymentTest extends TestCase
|
||||
|
||||
$payment = Payment::find($this->decodePrimaryKey($payment_id));
|
||||
|
||||
// nlog($payment);
|
||||
|
||||
$this->assertNotNull($payment);
|
||||
$this->assertNotNull($payment->invoices());
|
||||
$this->assertEquals(1, $payment->invoices()->count());
|
||||
|
Loading…
x
Reference in New Issue
Block a user