mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Clone estimates (#97)
* Clone estimates * Clone estimate test feature * Resolve namespace * Fix string to int for Carbon * Fix homes routes and default queue key * Move dropdown item below View and use the propper translation key
This commit is contained in:
@@ -65,6 +65,18 @@ test('create estimate', function () {
|
||||
]);
|
||||
});
|
||||
|
||||
test('clone estimate', function () {
|
||||
|
||||
$estimate = Estimate::factory()->create();
|
||||
|
||||
$beforeCount = Estimate::count();
|
||||
|
||||
$response = $this->post("/api/v1/estimates/{$estimate->id}/clone");
|
||||
|
||||
$this->assertDatabaseCount('estimates', $beforeCount + 1);
|
||||
|
||||
});
|
||||
|
||||
test('store validates using a form request', function () {
|
||||
$this->assertActionUsesFormRequest(
|
||||
EstimatesController::class,
|
||||
|
||||
Reference in New Issue
Block a user