mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-18 18:54:07 +00:00
Upgrade to Laravel 10, Vite 5+
This commit is contained in:
@@ -92,5 +92,5 @@ test('delete custom field', function () {
|
||||
'success' => true,
|
||||
]);
|
||||
|
||||
$this->assertDeleted($customField);
|
||||
$this->assertModelMissing($customField);
|
||||
});
|
||||
|
||||
@@ -259,7 +259,7 @@ test('delete multiple estimates', function () {
|
||||
]);
|
||||
|
||||
foreach ($estimates as $estimate) {
|
||||
$this->assertDeleted($estimate);
|
||||
$this->assertModelMissing($estimate);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -89,5 +89,5 @@ test('delete category', function () {
|
||||
'success' => true,
|
||||
]);
|
||||
|
||||
$this->assertDeleted($category);
|
||||
$this->assertModelMissing($category);
|
||||
});
|
||||
|
||||
@@ -129,7 +129,7 @@ test('delete multiple expenses', function () {
|
||||
]);
|
||||
|
||||
foreach ($expenses as $expense) {
|
||||
$this->assertDeleted($expense);
|
||||
$this->assertModelMissing($expense);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ test('delete multiple invoices', function () {
|
||||
]);
|
||||
|
||||
foreach ($invoices as $invoice) {
|
||||
$this->assertDeleted($invoice);
|
||||
$this->assertModelMissing($invoice);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ test('delete multiple items', function () {
|
||||
postJson("/api/v1/items/delete", $data)->assertOk();
|
||||
|
||||
foreach ($items as $item) {
|
||||
$this->assertDeleted($item);
|
||||
$this->assertModelMissing($item);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -62,5 +62,5 @@ test('delete note', function () {
|
||||
'success' => true,
|
||||
]);
|
||||
|
||||
$this->assertDeleted($note);
|
||||
$this->assertModelMissing($note);
|
||||
});
|
||||
|
||||
@@ -101,5 +101,5 @@ test('delete payment method', function () {
|
||||
|
||||
$response->assertOk();
|
||||
|
||||
$this->assertDeleted($method);
|
||||
$this->assertModelMissing($method);
|
||||
});
|
||||
|
||||
@@ -111,7 +111,7 @@ test('delete multiple recurring invoice', function () {
|
||||
]);
|
||||
|
||||
foreach ($recurringInvoices as $recurringInvoice) {
|
||||
$this->assertDeleted($recurringInvoice);
|
||||
$this->assertModelMissing($recurringInvoice);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ test('delete tax type', function () {
|
||||
'success' => true,
|
||||
]);
|
||||
|
||||
$this->assertDeleted($taxType);
|
||||
$this->assertModelMissing($taxType);
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -97,5 +97,5 @@ test('delete unit', function () {
|
||||
|
||||
$response->assertOk();
|
||||
|
||||
$this->assertDeleted($unit);
|
||||
$this->assertModelMissing($unit);
|
||||
});
|
||||
|
||||
@@ -92,5 +92,5 @@ test('update user using a form request', function () {
|
||||
// postJson("/api/v1/users/delete", $data)
|
||||
// ->assertOk();
|
||||
|
||||
// $this->assertDeleted($user);
|
||||
// $this->assertModelMissing($user);
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user