Skip to content

Commit d72bbaa

Browse files
docs: add notice about disableReboot in tests with multiple requests (#1363)
1 parent f333812 commit d72bbaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

distribution/testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ from [AliceBundle](https://github.com/hautelook/AliceBundle/blob/master/README.m
228228
test, purge the database, load fixtures, begin a transaction, and, at the end of each test, roll back the
229229
transaction previously begun. Because of this, you can run your tests without worrying about fixtures.
230230

231+
There is one caveat though: in some tests, it is necessary to perform multiple requests in one test, for example when creating a user via the API and checking that a subsequent login using the same password works. However, the client will by default reboot the kernel, which will reset the database. You can prevent this by adding `$client->disableReboot();` to such tests.
232+
231233
All you have to do now is to run your tests:
232234

233235
```console

0 commit comments

Comments
 (0)