]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/tests/parameters_test.sqlite.yml
Remove custom Postgres class
[github/wallabag/wallabag.git] / app / config / tests / parameters_test.sqlite.yml
index 1952e3a61135340aa66c461c53c53e0fbe1b3332..2b92d579f5d1db332c3aa68c523734c15e94043c 100644 (file)
@@ -5,4 +5,8 @@ parameters:
     test_database_name: ~
     test_database_user: ~
     test_database_password: ~
-    test_database_path: "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
+    # Using an environnement variable in order to avoid the error "attempt to write a readonly database"
+    # when the schema is dropped then recreate
+    test_database_path: "%env(TEST_DATABASE_PATH)%"
+    env(TEST_DATABASE_PATH): "%kernel.project_dir%/data/db/wallabag_test.sqlite"
+    test_database_charset: utf8