get('/register')->assertNotFound(); }); test('self-registration POST endpoint is not reachable', function () { // Lernschiff is invite-only — POST /register must return 404 like the GET. $this->post('/register', [ 'name' => 'Should Not Work', 'email' => 'no-register@example.com', 'password' => 'password', 'password_confirmation' => 'password', ])->assertNotFound(); });