From: Jeremy Date: Fri, 27 Mar 2015 18:46:36 +0000 (+0100) Subject: Use doctrine cache for tests X-Git-Tag: 2.0.0-alpha.0~72^2~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a05be8abecfe9e5dc032a93ba1a0b6063f3f7c9b;p=github%2Fwallabag%2Fwallabag.git Use doctrine cache for tests --- diff --git a/app/config/config_test.yml b/app/config/config_test.yml index a6ead1e8..32156963 100644 --- a/app/config/config_test.yml +++ b/app/config/config_test.yml @@ -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 diff --git a/app/config/services.yml b/app/config/services.yml index 91a03e10..af22d381 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -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