22 lines
740 B
PHP
22 lines
740 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Auth;
|
|
|
|
// Lernschiff is invite-only. Self-registration is disabled.
|
|
// Users are created by school-admin or platform-admin via invite.
|
|
|
|
test('registration screen is disabled (invite-only)', function () {
|
|
// /register route is commented out in routes/auth.php — expect 404.
|
|
$this->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();
|
|
});
|