18 lines
668 B
PHP
18 lines
668 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('new users can register', function () {
|
|
// Lernschiff does not support self-registration — users require a tenant_id.
|
|
// Registration is handled by school admins. This test is skipped.
|
|
$this->markTestSkipped('Self-registration is not supported in Lernschiff (tenant_id required).');
|
|
});
|