Skip to content

Instantly share code, notes, and snippets.

@ahonymous
Forked from Etheriq/config_test.yml
Last active August 4, 2016 20:16
Show Gist options
  • Save ahonymous/58e059d18ce11fbd1a9cc175d035d3f9 to your computer and use it in GitHub Desktop.
Save ahonymous/58e059d18ce11fbd1a9cc175d035d3f9 to your computer and use it in GitHub Desktop.
example config_test.yml for using alternative db
parameters:
test_db_path: "%kernel.cache_dir%/db.sqlite" //the real path of DB for the test
default_db_path: "%kernel.cache_dir%/Resources/private/tests/snapshot.sqlite" //is the real path of DB for snapshot
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_sqlite
memory: true
charset: UTF8
mapping_types:
enum: string
path: "%test_db_path%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment