Remove need for TEST_DATABASE_PATH

This commit is contained in:
Yassine Guedidi
2024-01-14 23:16:31 +01:00
parent ab3eaf2d3d
commit 7e40142aa0
3 changed files with 7 additions and 12 deletions

View File

@ -1,5 +1,2 @@
parameters:
env(DATABASE_URL): sqlite://:@localhost/%env(TEST_DATABASE_PATH)%?charset=utf8
# Using an environment variable in order to avoid the error "attempt to write a readonly database"
# when the schema is dropped then recreate
env(TEST_DATABASE_PATH): "%kernel.project_dir%/data/db/wallabag_test.sqlite"
env(DATABASE_URL): sqlite:///%kernel.project_dir%/data/db/wallabag_test.sqlite?charset=utf8