- 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>
25 lines
579 B
PHP
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');
|
|
}
|
|
}
|