Skip to content
Snippets Groups Projects
Commit 89bfa3bd authored by davejenx's avatar davejenx Committed by GitHub
Browse files

Add warning about TRUNCATE TABLE.

parent 48e55c48
No related branches found
No related tags found
No related merge requests found
......@@ -98,8 +98,9 @@ rollback automatically at the end of the test.
!!! warning
Schema changes in your test will cause an auto-commit of all changes, and
therefore the transaction will be ignored. If your tests create custom tables
or change the database schema please be aware you may need to manually reset
it.
therefore the transaction will be ignored. This includes TRUNCATE TABLE,
because this implicitly drops and re-creates the table. If your tests create
custom tables or change the database schema please be aware you may need to
manually reset it.
[civi-test-class]: https://github.com/civicrm/org.civicrm.testapalooza/blob/master/civi-test.md
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment