Changes to easier route registration.

This commit is contained in:
Italo
2022-06-15 16:16:56 -04:00
parent 43a192d007
commit 6fe7ff58f5
4 changed files with 56 additions and 17 deletions

23
tests/WebAuthnTest.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
namespace Tests;
use Illuminate\Support\Facades\Route;
use Laragear\WebAuthn\WebAuthn;
class WebAuthnTest extends TestCase
{
protected function defineWebRoutes($router): void
{
WebAuthn::routes();
}
public function test_registers_webauthn_routes(): void
{
static::assertTrue(Route::has('webauthn.register.options'));
static::assertTrue(Route::has('webauthn.register'));
static::assertTrue(Route::has('webauthn.login.options'));
static::assertTrue(Route::has('webauthn.login'));
}
}