Setup pint & run code style fix

This commit is contained in:
gdarko
2024-01-29 04:46:01 -06:00
parent 8de34efd8c
commit 4ab92473e9
406 changed files with 1616 additions and 2026 deletions

View File

@@ -1,11 +1,12 @@
<?php
use Illuminate\Support\Facades\Artisan;
use InvoiceShelf\Http\Controllers\V1\Admin\Company\CompaniesController;
use InvoiceShelf\Http\Requests\CompaniesRequest;
use InvoiceShelf\Models\Company;
use InvoiceShelf\Models\User;
use Illuminate\Support\Facades\Artisan;
use Laravel\Sanctum\Sanctum;
use function Pest\Laravel\getJson;
use function Pest\Laravel\postJson;
@@ -35,8 +36,8 @@ test('store company', function () {
$company = Company::factory()->raw([
'currency' => 12,
'address' => [
'country_id' => 12
]
'country_id' => 12,
],
]);
postJson('/api/v1/companies', $company)
@@ -44,7 +45,7 @@ test('store company', function () {
$company = collect($company)
->only([
'name'
'name',
])
->toArray();
@@ -52,7 +53,7 @@ test('store company', function () {
});
test('delete company', function () {
postJson('/api/v1/companies/delete', ["xyz"])
postJson('/api/v1/companies/delete', ['xyz'])
->assertStatus(422);
});