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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Analyze
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
Documentation
Docs
Developer Documentation
Merge requests
!431
Add warning about TRUNCATE TABLE to PHPUnit Tests doc.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add warning about TRUNCATE TABLE to PHPUnit Tests doc.
github/fork/davejenx/patch-1
into
master
Overview
1
Commits
0
Pipelines
0
Changes
0
Merged
homotechsual
requested to merge
github/fork/davejenx/patch-1
into
master
7 years ago
Overview
1
Commits
0
Pipelines
0
Changes
1
Expand
Created by: davejenx
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2736363e
0 commits,
4 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
docs/testing/phpunit.md
+
4
−
3
Options
@@ -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
Loading