Skip to content

Commit 0c3b748

Browse files
aguingandgithub-actions[bot]
authored andcommitted
CS fix
1 parent 10d2c10 commit 0c3b748

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

tests/Http/Auth/SpatiePasskeys/SpatiePasskeysTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
11
<?php
22

3-
43
use Code16\Sharp\Auth\Passkeys\Commands\UpdatePasskeyNameCommand;
54
use Code16\Sharp\Auth\Passkeys\Entity\PasskeyEntity;
65
use Code16\Sharp\Auth\Passkeys\Entity\PasskeyList;
76
use Code16\Sharp\Tests\Fixtures\Entities\PersonEntity;
8-
use Code16\Sharp\Tests\Fixtures\User;
9-
use Illuminate\Database\Eloquent\Casts\Attribute;
107
use Illuminate\Database\Eloquent\ModelNotFoundException;
118
use Illuminate\Database\Schema\Blueprint;
12-
use Illuminate\Events\Dispatcher;
139
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
1410
use Illuminate\Support\Facades\Cookie;
15-
use Illuminate\Support\Facades\DB;
1611
use Illuminate\Support\Facades\Route;
1712
use Illuminate\Support\Facades\Schema;
1813
use Illuminate\Validation\ValidationException;
19-
use Spatie\LaravelPasskeys\Actions\FindPasskeyToAuthenticateAction;
2014
use Spatie\LaravelPasskeys\Actions\GeneratePasskeyRegisterOptionsAction;
2115
use Spatie\LaravelPasskeys\Actions\StorePasskeyAction;
22-
use Spatie\LaravelPasskeys\Events\PasskeyUsedToAuthenticateEvent;
23-
use Spatie\LaravelPasskeys\Http\Requests\AuthenticateUsingPasskeysRequest;
2416
use Spatie\LaravelPasskeys\Models\Concerns\HasPasskeys;
25-
use Spatie\LaravelPasskeys\Models\Concerns\InteractsWithPasskeys;
2617
use Spatie\LaravelPasskeys\Models\Passkey;
2718
use Webauthn\PublicKeyCredentialCreationOptions;
2819

2920
use function Orchestra\Testbench\Pest\defineEnvironment;
3021
use function Orchestra\Testbench\Pest\defineRoutes;
3122

32-
3323
require_once __DIR__.'/helpers.php';
3424

3525
pest()->use(LazilyRefreshDatabase::class);
@@ -283,7 +273,6 @@
283273
->assertJsonValidationErrors('name');
284274
});
285275

286-
287276
it('store endpoint calls StorePasskeyAction with appropriate arguments', function () {
288277
$user = createPasskeyUser();
289278
login($user);
@@ -346,4 +335,3 @@ public function execute(HasPasskeys $authenticatable, bool $asJson = true): stri
346335
return '{"challenge":"fake-challenge","rp":{"name":"test"}}';
347336
}
348337
}
349-

0 commit comments

Comments
 (0)