From 89bfa3bd90a2eb540ea934bf97d3eee7bf7f25d5 Mon Sep 17 00:00:00 2001
From: davejenx <davej+git@circle-interactive.co.uk>
Date: Fri, 20 Oct 2017 18:28:15 +0100
Subject: [PATCH] Add warning about TRUNCATE TABLE.

---
 docs/testing/phpunit.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/testing/phpunit.md b/docs/testing/phpunit.md
index 6c435584..ffae14bd 100644
--- a/docs/testing/phpunit.md
+++ b/docs/testing/phpunit.md
@@ -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
-- 
GitLab