]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/tests/parameters_test.sqlite.yml
Isolated tests
[github/wallabag/wallabag.git] / app / config / tests / parameters_test.sqlite.yml
index b8a5f41a709020ae1e59a3d47f15dd10f47732a5..5c731bf54f6bcc704e45b8910d68bb005876a05f 100644 (file)
@@ -5,5 +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.root_dir%/../data/db/wallabag_test.sqlite"
     test_database_charset: utf8