We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99f756 commit 9ea6fc8Copy full SHA for 9ea6fc8
app/config/config_test.yml
@@ -1,6 +1,13 @@
1
imports:
2
- { resource: config_dev.yml }
3
4
+parameters:
5
+ # It's recommended to use a separate database for tests. This allows to have a
6
+ # fixed and known set of data fixtures, it simplifies the code of tests and it
7
+ # makes them more robust.
8
+ # In this case we just need to define a different path for the application database.
9
+ env(DATABASE_URL): 'sqlite:///%kernel.project_dir%/var/data/blog_test.sqlite'
10
+
11
framework:
12
test: ~
13
session:
phpunit.xml.dist
@@ -10,7 +10,6 @@
<php>
<ini name="error_reporting" value="-1" />
<server name="KERNEL_DIR" value="app/" />
- <env name="DATABASE_URL" value="sqlite:///var/data/blog_test.sqlite"/>
14
</php>
15
16
<testsuites>
0 commit comments