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
ff4b655a
Commit
ff4b655a
authored
2 years ago
by
Bradley Taylor
Browse files
Options
Downloads
Patches
Plain Diff
[REF][PHP8.2] Refactor CRM_Case_BAO_CaseTest to use const
parent
e60a53f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/CRM/Case/BAO/CaseTest.php
+20
-20
20 additions, 20 deletions
tests/phpunit/CRM/Case/BAO/CaseTest.php
with
20 additions
and
20 deletions
tests/phpunit/CRM/Case/BAO/CaseTest.php
+
20
−
20
View file @
ff4b655a
...
...
@@ -6,28 +6,28 @@
*/
class
CRM_Case_BAO_CaseTest
extends
CiviUnitTestCase
{
const
TABLES_TO_TRUNCATE
=
[
'civicrm_activity'
,
'civicrm_group_contact'
,
'civicrm_contact'
,
'civicrm_custom_group'
,
'civicrm_custom_field'
,
'civicrm_case'
,
'civicrm_case_contact'
,
'civicrm_case_activity'
,
'civicrm_case_type'
,
'civicrm_file'
,
'civicrm_entity_file'
,
'civicrm_activity_contact'
,
'civicrm_managed'
,
'civicrm_relationship'
,
'civicrm_relationship_type'
,
];
public
function
setUp
():
void
{
parent
::
setUp
();
$this
->
tablesToTruncate
=
[
'civicrm_activity'
,
'civicrm_group_contact'
,
'civicrm_contact'
,
'civicrm_custom_group'
,
'civicrm_custom_field'
,
'civicrm_case'
,
'civicrm_case_contact'
,
'civicrm_case_activity'
,
'civicrm_case_type'
,
'civicrm_file'
,
'civicrm_entity_file'
,
'civicrm_activity_contact'
,
'civicrm_managed'
,
'civicrm_relationship'
,
'civicrm_relationship_type'
,
];
$this
->
quickCleanup
(
$this
->
tablesToTruncate
);
$this
->
quickCleanup
(
self
::
TABLES_TO_TRUNCATE
);
$this
->
loadAllFixtures
();
...
...
@@ -60,7 +60,7 @@ class CRM_Case_BAO_CaseTest extends CiviUnitTestCase {
}
protected
function
tearDown
():
void
{
$this
->
quickCleanup
(
$this
->
tablesToTruncate
,
TRUE
);
$this
->
quickCleanup
(
self
::
TABLES_TO_TRUNCATE
,
TRUE
);
parent
::
tearDown
();
}
...
...
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