Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
Development
CiviCRM Core
Commits
59c1dcb4
Commit
59c1dcb4
authored
3 years ago
by
Eileen McNaughton
Browse files
Options
Downloads
Patches
Plain Diff
Test cleanup fix
parent
e35e6126
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/CiviTest/CiviUnitTestCase.php
+4
-0
4 additions, 0 deletions
tests/phpunit/CiviTest/CiviUnitTestCase.php
with
4 additions
and
0 deletions
tests/phpunit/CiviTest/CiviUnitTestCase.php
+
4
−
0
View file @
59c1dcb4
...
...
@@ -29,6 +29,7 @@
use
Civi\Api4\Contribution
;
use
Civi\Api4\CustomField
;
use
Civi\Api4\CustomGroup
;
use
Civi\Api4\FinancialType
;
use
Civi\Api4\LineItem
;
use
Civi\Api4\OptionGroup
;
use
Civi\Api4\RelationshipType
;
...
...
@@ -1926,6 +1927,9 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
$this
->
restoreDefaultPriceSetConfig
();
$this
->
disableTaxAndInvoicing
();
$this
->
setCurrencySeparators
(
','
);
FinancialType
::
delete
(
FALSE
)
->
addWhere
(
'name'
,
'NOT IN'
,
[
'Donation'
,
'Member Dues'
,
'Campaign Contribution'
,
'Event Fee'
]
)
->
execute
();
CRM_Core_PseudoConstant
::
flush
(
'taxRates'
);
System
::
singleton
()
->
flushProcessors
();
// @fixme this parameter is leaking - it should not be defined as a class static
...
...
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