Files
clinicpro/.env.test
T
hamedandClaude Opus 4.8 30c5fbe98c test: functional test infrastructure (ApiTestCase + db_test + JWT helpers)
- .env.test points at db_test (doctrine when@test appends _test suffix)
- ApiTestCase: WebTestCase base with createUser/jwtFor/authJson helpers
- InfraSmokeTest: proves boot + DB + JWT auth pipeline works (/health 200,
  unauth /oauth/userinfo 401, JWT-auth userinfo 200)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 16:44:05 +03:30

12 lines
540 B
Bash

# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
# Test DB: doctrine's when@test config appends the `_test` suffix (see
# config/packages/doctrine.yaml), so this base name `db` becomes `db_test`.
# That database is created in ddev and granted to user `db`.
DATABASE_URL="mysql://db:db@db:3306/db?serverVersion=8.0&charset=utf8mb4"
# JWT — generated keypair is shared with dev; passphrase from .env is fine.
# Redis cache/messenger use the same ddev redis; tests don't depend on it.