mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Reformat with pint
This commit is contained in:
@@ -4,7 +4,7 @@ use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\{getJson};
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -47,7 +47,7 @@ test('create estimate', function () {
|
||||
$estimate['taxes'] = [];
|
||||
array_push($estimate['taxes'], Tax::factory()->raw());
|
||||
|
||||
$request = new EstimatesRequest();
|
||||
$request = new EstimatesRequest;
|
||||
|
||||
$request->replace($estimate);
|
||||
|
||||
@@ -91,7 +91,7 @@ test('update estimate', function () {
|
||||
array_push($newEstimate['items'], $item);
|
||||
array_push($newEstimate['taxes'], Tax::factory()->raw());
|
||||
|
||||
$request = new EstimatesRequest();
|
||||
$request = new EstimatesRequest;
|
||||
|
||||
$request->replace($newEstimate);
|
||||
|
||||
@@ -135,7 +135,7 @@ test('create items', function () {
|
||||
|
||||
array_push($items, $item);
|
||||
|
||||
$request = new Request();
|
||||
$request = new Request;
|
||||
|
||||
$request->replace(['items' => $items]);
|
||||
|
||||
@@ -168,7 +168,7 @@ test('create taxes', function () {
|
||||
array_push($taxes, $tax1);
|
||||
array_push($taxes, $tax2);
|
||||
|
||||
$request = new Request();
|
||||
$request = new Request;
|
||||
|
||||
$request->replace(['taxes' => $taxes]);
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ test('create invoice', function () {
|
||||
$invoice['taxes'] = [];
|
||||
array_push($invoice['taxes'], Tax::factory()->raw());
|
||||
|
||||
$request = new InvoicesRequest();
|
||||
$request = new InvoicesRequest;
|
||||
|
||||
$request->replace($invoice);
|
||||
|
||||
@@ -111,7 +111,7 @@ test('update invoice', function () {
|
||||
array_push($newInvoice['items'], $item);
|
||||
array_push($newInvoice['taxes'], $tax);
|
||||
|
||||
$request = new InvoicesRequest();
|
||||
$request = new InvoicesRequest;
|
||||
|
||||
$request->replace($newInvoice);
|
||||
|
||||
@@ -154,7 +154,7 @@ test('create items', function () {
|
||||
|
||||
array_push($items, $item);
|
||||
|
||||
$request = new InvoicesRequest();
|
||||
$request = new InvoicesRequest;
|
||||
|
||||
$request->replace(['items' => $items]);
|
||||
|
||||
@@ -181,7 +181,7 @@ test('create taxes', function () {
|
||||
|
||||
array_push($taxes, $tax);
|
||||
|
||||
$request = new Request();
|
||||
$request = new Request;
|
||||
|
||||
$request->replace(['taxes' => $taxes]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user