Changes to easier route registration.
This commit is contained in:
23
tests/WebAuthnTest.php
Normal file
23
tests/WebAuthnTest.php
Normal 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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user