dudi/tests
Simon Kühn b537066a19 Fix registration: auto-login after signup, atomic token consumption
Registration failed visibly because the controller returned successfully
(user created, invite consumed) but the JS then called loadGoals() without
an authenticated session — causing a 401 that surfaced as an error to the user.

- Add Security::login() after user creation so the session is established
  immediately, matching the documented "registers + auto-logs in" behavior
- Wrap user persist and invite consumption in a single DB transaction so
  the invite token can never be consumed if user creation fails
- Add 12 integration tests covering auto-login, locale updates, logout,
  partial goal updates, invite isolation, and various edge cases (110 assertions total)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 09:58:21 +02:00
..
AppIntegrationTest.php Fix registration: auto-login after signup, atomic token consumption 2026-05-01 09:58:21 +02:00
bootstrap.php Add PHPUnit integration tests, remove legacy pre-Symfony files, fix password reset 2026-04-30 10:18:21 +02:00