Umbenennung presseportale → pressekonto in Domains, Themes und Dokumentation. Design-Tokens, Portal-Shell, Customer-Dashboard, Auth- und Admin-PM-Views. Artisan-Befehl migrate:legacy-media mit Tests und Hub-Flux-Entwicklungsdocs. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
840 B
PHP
28 lines
840 B
PHP
<?php
|
|
|
|
use Livewire\Volt\Volt;
|
|
|
|
test('registration screen can be rendered', function () {
|
|
$response = $this->get('/register');
|
|
|
|
$response->assertStatus(200);
|
|
});
|
|
|
|
test('new users can register', function () {
|
|
// terms_accepted ist seit dem Hub-Auth-Refresh Pflicht (AGB-Checkbox).
|
|
// Frisch registrierte User haben keine Rolle → Login-Code fällt auf '/'
|
|
// zurück (siehe Phase 1 rollen-basierter Redirect in login/register).
|
|
$response = Volt::test('auth.register')
|
|
->set('name', 'Test User')
|
|
->set('email', 'test@example.com')
|
|
->set('password', 'password')
|
|
->set('password_confirmation', 'password')
|
|
->set('terms_accepted', true)
|
|
->call('register');
|
|
|
|
$response
|
|
->assertHasNoErrors()
|
|
->assertRedirect('/');
|
|
|
|
$this->assertAuthenticated();
|
|
});
|