File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ your test always has the same data to work with.
15
15
16
16
If you want to test your queries directly, see :doc: `/testing/doctrine `.
17
17
18
+ .. tip ::
19
+
20
+ A popular technique to improve the performance of tests that interact with
21
+ the database is to begin a transaction before every test and roll it back
22
+ after the test has finished. This makes it unnecessary to recreate the
23
+ database or reload fixtures before every test. A community bundle called
24
+ `DoctrineTestBundle `_ provides this feature.
25
+
18
26
Mocking the ``Repository `` in a Unit Test
19
27
-----------------------------------------
20
28
@@ -150,3 +158,5 @@ configuration:
150
158
151
159
Make sure that your database runs on localhost and has the defined database and
152
160
user credentials set up.
161
+
162
+ .. _`DoctrineTestBundle` : https://github.com/dmaicher/doctrine-test-bundle
You can’t perform that action at this time.
0 commit comments