Skip to content
Snippets Groups Projects
Commit 923dba25 authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #431 from davejenx/patch-1

Add warning about TRUNCATE TABLE to PHPUnit Tests doc.
parents 48e55c48 2736363e
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