1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Additional test coverage

This commit is contained in:
David Bomba 2023-04-10 08:56:55 +10:00
parent bde1f8865e
commit d687d364d8
2 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class MatchBankTransactions implements ShouldQueue
foreach($_expenses as $_expense) {
$expense = Expense::withTrashed()
->where('id', $this->decodePrimaryKey($_expense))
->where('id', $this->decodePrimaryKey($_expense))
->where('company_id', $this->bt->company_id)
->first();

View File

@ -77,6 +77,7 @@ class BankTransactionTest extends TestCase
$this->assertEquals($this->expense->refresh()->transaction_id, $bt->id);
$this->assertEquals($this->expense->hashed_id, $bt->refresh()->expense_id);
$this->assertEquals($bt->id, $this->expense->transaction_id);
$this->assertEquals($this->vendor->id, $bt->vendor_id);
$this->assertEquals(BankTransaction::STATUS_CONVERTED, $bt->status_id);