🔥 **Cleanup & Tests:** Removed the obsolete auth.register component and its related route, feature tests, and browser tests. Disabled public registration and added tests to ensure /register returns a 404. Added new tests for service, lecturer, city, venue, and meetup CRUD flows.

This commit is contained in:
BT
2026-05-03 20:09:07 +02:00
parent a4cbb10604
commit a363c99453
13 changed files with 344 additions and 120 deletions
-4
View File
@@ -6,10 +6,6 @@ it('mounts the auth.login component', function () {
Livewire::test('auth.login')->assertStatus(200);
});
it('mounts the auth.register component', function () {
Livewire::test('auth.register')->assertStatus(200);
});
it('mounts the auth.forgot-password component', function () {
Livewire::test('auth.forgot-password')->assertStatus(200);
});
+4 -1
View File
@@ -25,7 +25,6 @@ it('returns a successful response for the listed public route', function (string
})->with([
'welcome' => '/welcome',
'login' => '/login',
'register' => '/register',
'forgot password' => '/forgot-password',
'meetups index' => '/de/meetups',
'meetups all' => '/de/all-meetups',
@@ -42,6 +41,10 @@ it('redirects / to /welcome', function () {
$this->get('/')->assertRedirect('/welcome');
});
it('returns 404 for /register because public registration is disabled', function () {
$this->get('/register')->assertNotFound();
});
it('redirects /de/dashboard to login when guest', function () {
$this->get('/de/dashboard')->assertRedirect(route('login'));
});