Files
BauIN/tests/Feature/Auth/RegistrationDisabledTest.php
T
ChristophandClaude Opus 5.5 dedce594a0 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>
2026-10-01 08:53:42 +02:00

25 lines
579 B
PHP

<?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');
}
}