File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1484,7 +1484,9 @@ Global State
14841484~~~~~~~~~~~~
14851485
14861486If you have an initial database state you want for all tests, you can set this in the config of the bundle. Accepted
1487- values are: stories as service, "global" stories and invokable services.
1487+ values are: stories as service, "global" stories and invokable services. Global state is loaded before each using
1488+ the ``ResetDatabase `` trait. If you are using `DamaDoctrineTestBundle `_, it is only loaded once for the entire
1489+ test suite.
14881490
14891491.. configuration-block ::
14901492
@@ -1508,6 +1510,10 @@ values are: stories as service, "global" stories and invokable services.
15081510
15091511 The :ref: `ResetDatabase <enable-foundry-in-your-testcase >` trait is required when using global state.
15101512
1513+ .. warning ::
1514+
1515+ Be aware that a complex global state could slow down your test suite.
1516+
15111517PHPUnit Data Providers
15121518~~~~~~~~~~~~~~~~~~~~~~
15131519
You can’t perform that action at this time.
0 commit comments