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:
parent
bde1f8865e
commit
d687d364d8
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user