mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-14 00:34:05 +00:00
Add expense number at Expenses (#406)
* add expense number at expenses * Re-order expense fields * Rename expense_number migration * Add expense_number to tests --------- Co-authored-by: Darko Gjorgjijoski <dg@darkog.com>
This commit is contained in:
committed by
GitHub
parent
f3e49d3044
commit
3e96297699
@@ -57,6 +57,7 @@ test('store validates using a form request', function () {
|
||||
|
||||
test('get expense data', function () {
|
||||
$expense = Expense::factory()->create([
|
||||
'expense_number' => 'EXP-000001',
|
||||
'expense_date' => '2019-02-05',
|
||||
]);
|
||||
|
||||
@@ -64,6 +65,7 @@ test('get expense data', function () {
|
||||
|
||||
$this->assertDatabaseHas('expenses', [
|
||||
'id' => $expense->id,
|
||||
'expense_number' => $expense['expense_number'],
|
||||
'notes' => $expense['notes'],
|
||||
'expense_category_id' => $expense['expense_category_id'],
|
||||
'amount' => $expense['amount'],
|
||||
|
||||
Reference in New Issue
Block a user