Fixes for payment tests
This commit is contained in:
parent
d919134bb9
commit
8bddb49e6c
2 changed files with 0 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue