From a05be8abecfe9e5dc032a93ba1a0b6063f3f7c9b Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 27 Mar 2015 19:46:36 +0100 Subject: [PATCH] Use doctrine cache for tests --- app/config/config_test.yml | 7 +++++++ app/config/services.yml | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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 -- 2.41.0