From 8bddb49e6c0671aaabecacdd0b62955f89488f20 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 11 Mar 2023 14:26:13 +1100 Subject: [PATCH] Fixes for payment tests --- app/Http/ValidationRules/PaymentAppliedValidAmount.php | 1 - tests/Feature/PaymentTest.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/Http/ValidationRules/PaymentAppliedValidAmount.php b/app/Http/ValidationRules/PaymentAppliedValidAmount.php index 24c5dbe09e47..88432bd8f2a8 100644 --- a/app/Http/ValidationRules/PaymentAppliedValidAmount.php +++ b/app/Http/ValidationRules/PaymentAppliedValidAmount.php @@ -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']) { diff --git a/tests/Feature/PaymentTest.php b/tests/Feature/PaymentTest.php index f1e5c17c5972..48c10689645d 100644 --- a/tests/Feature/PaymentTest.php +++ b/tests/Feature/PaymentTest.php @@ -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());