The end user doesn't care to about the test database.
imports:
- { resource: config_dev.yml }
+ - { resource: parameters_test.yml }
framework:
test: ~
database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
database_table_prefix: wallabag_
- test_database_driver: pdo_sqlite
- test_database_host: 127.0.0.1
- test_database_port: ~
- test_database_name: ~
- test_database_user: ~
- test_database_password: ~
- test_database_path: "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
-
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: ~
--- /dev/null
+parameters:
+ test_database_driver: pdo_sqlite
+ test_database_host: 127.0.0.1
+ test_database_port: null
+ test_database_name: null
+ test_database_user: null
+ test_database_password: null
+ test_database_path: '%kernel.root_dir%/../data/db/wallabag_testYO.sqlite'
+++ /dev/null
-# This file is a "template" of what your parameters.yml file should look like
-parameters:
- database_driver: pdo_sqlite
- database_host: 127.0.0.1
- database_port: ~
- database_name: symfony
- database_user: root
- database_password: ~
- database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
- database_table_prefix: wallabag_
-
- test_database_driver: pdo_mysql
- test_database_host: localhost
- test_database_port: 3306
- test_database_name: wallabag_test
- test_database_user: root
- test_database_password: ~
- test_database_path: ~
-
- mailer_transport: smtp
- mailer_host: 127.0.0.1
- mailer_user: ~
- mailer_password: ~
-
- locale: en
-
- # A secret key that's used to generate certain security-related tokens
- secret: ThisTokenIsNotSoSecretChangeIt
-
- # two factor stuff
- twofactor_auth: true
- twofactor_sender: no-reply@wallabag.org
-
- # fosuser stuff
- fosuser_confirmation: true
-
- from_email: no-reply@wallabag.org
+++ /dev/null
-# This file is a "template" of what your parameters.yml file should look like
-parameters:
- database_driver: pdo_sqlite
- database_host: 127.0.0.1
- database_port: ~
- database_name: symfony
- database_user: root
- database_password: ~
- database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
- database_table_prefix: wallabag_
-
- test_database_driver: pdo_pgsql
- test_database_host: localhost
- test_database_port:
- test_database_name: wallabag_test
- test_database_user: travis
- test_database_password: ~
- test_database_path: ~
-
- mailer_transport: smtp
- mailer_host: 127.0.0.1
- mailer_user: ~
- mailer_password: ~
-
- locale: en
-
- # A secret key that's used to generate certain security-related tokens
- secret: ThisTokenIsNotSoSecretChangeIt
-
- # two factor stuff
- twofactor_auth: true
- twofactor_sender: no-reply@wallabag.org
-
- # fosuser stuff
- fosuser_confirmation: true
-
- from_email: no-reply@wallabag.org
+++ /dev/null
-# This file is a "template" of what your parameters.yml file should look like
-parameters:
- database_driver: pdo_sqlite
- database_host: 127.0.0.1
- database_port: ~
- database_name: symfony
- database_user: root
- database_password: ~
- database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
- database_table_prefix: wallabag_
-
- test_database_driver: pdo_sqlite
- test_database_host: localhost
- test_database_port:
- test_database_name: ~
- test_database_user: ~
- test_database_password: ~
- test_database_path: "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
-
- mailer_transport: smtp
- mailer_host: 127.0.0.1
- mailer_user: ~
- mailer_password: ~
-
- locale: en
-
- # A secret key that's used to generate certain security-related tokens
- secret: ThisTokenIsNotSoSecretChangeIt
-
- # two factor stuff
- twofactor_auth: true
- twofactor_sender: no-reply@wallabag.org
-
- # fosuser stuff
- fosuser_confirmation: true
-
- from_email: no-reply@wallabag.org
--- /dev/null
+parameters:
+ test_database_driver: pdo_mysql
+ test_database_host: localhost
+ test_database_port: 3306
+ test_database_name: wallabag_test
+ test_database_user: root
+ test_database_password: ~
+ test_database_path: ~
--- /dev/null
+parameters:
+ test_database_driver: pdo_pgsql
+ test_database_host: localhost
+ test_database_port:
+ test_database_name: wallabag_test
+ test_database_user: travis
+ test_database_password: ~
+ test_database_path: ~
--- /dev/null
+parameters:
+ test_database_driver: pdo_sqlite
+ test_database_host: localhost
+ test_database_port:
+ test_database_name: ~
+ test_database_user: ~
+ test_database_password: ~
+ test_database_path: "%kernel.root_dir%/../data/db/wallabag_testHU.sqlite"
<target name="db_mysql" description="Run test for MySQL">
<delete dir="${basedir}/app/config/parameters.yml"/>
<exec executable="cp">
- <arg value="${basedir}/app/config/tests/parameters.yml.dist.mysql"/>
- <arg value="${basedir}/app/config/parameters.yml"/>
+ <arg value="${basedir}/app/config/tests/parameters_test.mysql.yml"/>
+ <arg value="${basedir}/app/config/parameters_test.yml"/>
</exec>
<exec executable="php">
<target name="db_sqlite" description="Run test for SQLite">
<delete dir="${basedir}/app/config/parameters.yml"/>
<exec executable="cp">
- <arg value="${basedir}/app/config/tests/parameters.yml.dist.sqlite"/>
- <arg value="${basedir}/app/config/parameters.yml"/>
+ <arg value="${basedir}/app/config/tests/parameters_test.sqlite.yml"/>
+ <arg value="${basedir}/app/config/parameters_test.yml"/>
</exec>
<exec executable="php">
<target name="db_pgsql" description="Run test for PostgreSQL">
<delete dir="${basedir}/app/config/parameters.yml"/>
<exec executable="cp">
- <arg value="${basedir}/app/config/tests/parameters.yml.dist.pgsql"/>
- <arg value="${basedir}/app/config/parameters.yml"/>
+ <arg value="${basedir}/app/config/tests/parameters_test.pgsql.yml"/>
+ <arg value="${basedir}/app/config/parameters_test.yml"/>
</exec>
<exec executable="php">