]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Use doctrine cache for tests
authorJeremy <jeremy.benoist@gmail.com>
Fri, 27 Mar 2015 18:46:36 +0000 (19:46 +0100)
committerJeremy <jeremy.benoist@gmail.com>
Fri, 27 Mar 2015 18:49:11 +0000 (19:49 +0100)
app/config/config_test.yml
app/config/services.yml

index a6ead1e82386f172efc7ca77abbfb2ae17d008b7..32156963e086e5bedc2fcca7d58407ce2376eb20 100644 (file)
@@ -20,3 +20,10 @@ doctrine:
         driver: pdo_sqlite
         path: %kernel.root_dir%/../data/db/wallabag_test.sqlite
         host: localhost
+    orm:
+        metadata_cache_driver:
+            type: service
+            id: filesystem_cache
+        query_cache_driver:
+            type: service
+            id: filesystem_cache
index 91a03e10e13d5d03612c1e18a910db5e2143456a..af22d3818cd7880c02c7ac8f67cbd610992b9242 100644 (file)
@@ -6,6 +6,8 @@ parameters:
     security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator
 
 services:
-#    service_name:
-#        class: AppBundle\Directory\ClassName
-#        arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
+    # used for tests
+    filesystem_cache:
+        class: Doctrine\Common\Cache\FilesystemCache
+        arguments:
+            - %kernel.cache_dir%/doctrine/metadata