mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-20 11:44:05 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Queue;
|
||||
use InvoiceShelf\Jobs\CreateBackupJob;
|
||||
use InvoiceShelf\Models\FileDisk;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Queue;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
use function Pest\Laravel\postJson;
|
||||
|
||||
@@ -43,15 +44,15 @@ test('create backup', function () {
|
||||
'file_disk_id' => $disk->id,
|
||||
];
|
||||
|
||||
$response = postJson("/api/v1/backups", $data);
|
||||
$response = postJson('/api/v1/backups', $data);
|
||||
|
||||
Queue::assertPushed(CreateBackupJob::class);
|
||||
|
||||
$response = getJson("/api/v1/backups?disk={$disk->driver}&&file_disk_id={$disk->id}");
|
||||
|
||||
$response->assertStatus(200)->assertJson([
|
||||
"disks" => [
|
||||
"local",
|
||||
'disks' => [
|
||||
'local',
|
||||
],
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user