Projektgrundlage: Laravel 13 mit Livewire-Starter-Kit und Sail
- Livewire-Starter-Kit (Livewire 4, Flux, Fortify) mit Pest - Sail mit PHP 8.5, MySQL 8.4, Redis, Meilisearch 1.54.2, Mailpit - Registrierung deaktiviert, 2FA und Passkeys verfügbar - Spatie laravel-permission - gitleaks als Pre-Commit-Hook (.githooks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Auth;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Tests\TestCase;
|
||||
|
||||
class RegistrationDisabledTest extends TestCase
|
||||
{
|
||||
public function test_registration_routes_are_not_available(): void
|
||||
{
|
||||
$this->assertFalse(Route::has('register'));
|
||||
|
||||
$this->get('/register')->assertNotFound();
|
||||
$this->post('/register')->assertNotFound();
|
||||
}
|
||||
|
||||
public function test_login_screen_does_not_link_to_registration(): void
|
||||
{
|
||||
$this->get(route('login'))
|
||||
->assertOk()
|
||||
->assertDontSee('/register');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user