Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
89bfa3bd
Commit
89bfa3bd
authored
7 years ago
by
davejenx
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add warning about TRUNCATE TABLE.
parent
48e55c48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/testing/phpunit.md
+4
-3
4 additions, 3 deletions
docs/testing/phpunit.md
with
4 additions
and
3 deletions
docs/testing/phpunit.md
+
4
−
3
View file @
89bfa3bd
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment