From 594a9328ab36d9e5854f69e40a72c92b83e83894 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 25 Mar 2021 15:12:59 +1300 Subject: [PATCH] [PHPUNIT8] add void to more teardown() --- tests/phpunit/CRM/Activity/BAO/ActivityTest.php | 2 +- tests/phpunit/CRM/Activity/Form/SearchTest.php | 2 +- tests/phpunit/CRM/Batch/BAO/BatchTest.php | 2 +- tests/phpunit/CRM/Batch/Form/EntryTest.php | 2 +- tests/phpunit/CRM/Case/BAO/CaseTest.php | 2 +- tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php | 2 +- tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php | 2 +- tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php | 2 +- .../CRM/Contact/BAO/ContactType/ContactTypeTest.php | 2 +- .../CRM/Contact/BAO/ContactType/RelationshipTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/GroupTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/RelationshipTest.php | 2 +- tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php | 2 +- tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php | 2 +- tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php | 2 +- .../CRM/Contact/Form/Task/PrintMailingLabelTest.php | 2 +- tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php | 2 +- tests/phpunit/CRM/Contact/Page/AjaxTest.php | 2 +- tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php | 2 +- tests/phpunit/CRM/Contact/Page/View/NoteTest.php | 2 +- tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php | 2 +- .../Contact/Page/View/UserDashboard/GroupContactTest.php | 2 +- tests/phpunit/CRM/Contribute/BAO/ContributionTest.php | 2 +- tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php | 2 +- tests/phpunit/CRM/Contribute/BAO/QueryTest.php | 2 +- .../phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php | 2 +- .../CRM/Contribute/Form/Contribution/ConfirmTest.php | 2 +- .../phpunit/CRM/Contribute/Form/Contribution/MainTest.php | 2 +- .../CRM/Contribute/Form/Contribution/ThankYouTest.php | 2 +- .../Contribute/Form/ContributionPageTranslationTest.php | 2 +- tests/phpunit/CRM/Contribute/Form/ContributionTest.php | 2 +- tests/phpunit/CRM/Contribute/Form/SearchTest.php | 2 +- tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php | 2 +- tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php | 2 +- .../CRM/Contribute/Import/Parser/ContributionTest.php | 2 +- tests/phpunit/CRM/Contribute/PseudoConstantTest.php | 2 +- tests/phpunit/CRM/Core/BAO/CustomFieldTest.php | 2 +- tests/phpunit/CRM/Core/BAO/CustomQueryTest.php | 2 +- tests/phpunit/CRM/Core/BAO/LocationTest.php | 2 +- tests/phpunit/CRM/Core/BAO/MappingTest.php | 2 +- tests/phpunit/CRM/Core/BAO/OpenIDTest.php | 2 +- tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php | 2 +- tests/phpunit/CRM/Core/BAO/SettingTest.php | 2 +- tests/phpunit/CRM/Core/CommunityMessagesTest.php | 2 +- tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php | 2 +- tests/phpunit/CRM/Core/ErrorTest.php | 2 +- tests/phpunit/CRM/Core/FieldOptionsTest.php | 2 +- tests/phpunit/CRM/Core/I18n/LocaleTest.php | 8 -------- tests/phpunit/CRM/Core/I18n/SchemaTest.php | 2 +- tests/phpunit/CRM/Core/InnoDBIndexerTest.php | 2 +- tests/phpunit/CRM/Core/ManagedEntitiesTest.php | 2 +- tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php | 2 +- tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php | 2 +- tests/phpunit/CRM/Core/Payment/BaseIPNTest.php | 2 +- tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php | 2 +- tests/phpunit/CRM/Core/Payment/PaypalProTest.php | 2 +- tests/phpunit/CRM/Core/Payment/PaypalStdTest.php | 2 +- tests/phpunit/CRM/Dedupe/DedupeFinderTest.php | 2 +- tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php | 2 +- tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php | 2 +- tests/phpunit/CRM/Event/Form/SearchTest.php | 2 +- tests/phpunit/CRM/Extension/BrowserTest.php | 2 +- tests/phpunit/CRM/Extension/Container/BasicTest.php | 2 +- tests/phpunit/CRM/Extension/Container/CollectionTest.php | 2 +- tests/phpunit/CRM/Extension/Container/StaticTest.php | 2 +- 69 files changed, 68 insertions(+), 76 deletions(-) diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php index 63d299314d..30c927b7f5 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php @@ -30,7 +30,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception */ - public function tearDown() { + public function tearDown(): void { $tablesToTruncate = [ 'civicrm_activity', 'civicrm_activity_contact', diff --git a/tests/phpunit/CRM/Activity/Form/SearchTest.php b/tests/phpunit/CRM/Activity/Form/SearchTest.php index 2c7d4faa32..3cddd3f2d5 100644 --- a/tests/phpunit/CRM/Activity/Form/SearchTest.php +++ b/tests/phpunit/CRM/Activity/Form/SearchTest.php @@ -15,7 +15,7 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase { ]); } - public function tearDown() { + public function tearDown(): void { $tablesToTruncate = [ 'civicrm_activity', 'civicrm_activity_contact', diff --git a/tests/phpunit/CRM/Batch/BAO/BatchTest.php b/tests/phpunit/CRM/Batch/BAO/BatchTest.php index 0bda3569cc..c3fa203b0f 100644 --- a/tests/phpunit/CRM/Batch/BAO/BatchTest.php +++ b/tests/phpunit/CRM/Batch/BAO/BatchTest.php @@ -36,7 +36,7 @@ class CRM_Batch_BAO_BatchTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { parent::tearDown(); $this->quickCleanup(['civicrm_batch']); } diff --git a/tests/phpunit/CRM/Batch/Form/EntryTest.php b/tests/phpunit/CRM/Batch/Form/EntryTest.php index 3d9dbbcb3f..3af9d83648 100644 --- a/tests/phpunit/CRM/Batch/Form/EntryTest.php +++ b/tests/phpunit/CRM/Batch/Form/EntryTest.php @@ -148,7 +148,7 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); $this->relationshipTypeDelete($this->_relationshipTypeId); if ($this->callAPISuccessGetCount('membership', ['id' => $this->_membershipTypeID])) { diff --git a/tests/phpunit/CRM/Case/BAO/CaseTest.php b/tests/phpunit/CRM/Case/BAO/CaseTest.php index f2af4b77e7..b16fe72620 100644 --- a/tests/phpunit/CRM/Case/BAO/CaseTest.php +++ b/tests/phpunit/CRM/Case/BAO/CaseTest.php @@ -56,7 +56,7 @@ class CRM_Case_BAO_CaseTest extends CiviUnitTestCase { } } - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); $this->quickCleanup($this->tablesToTruncate, TRUE); } diff --git a/tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php b/tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php index 493094e204..82455b571c 100644 --- a/tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php +++ b/tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php @@ -12,7 +12,7 @@ class CRM_Case_BAO_CaseTypeForkTest extends CiviCaseTestCase { CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); } diff --git a/tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php b/tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php index def111e16a..d287613b41 100644 --- a/tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php +++ b/tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php @@ -21,7 +21,7 @@ class CRM_Case_XMLProcessor_ProcessTest extends CiviCaseTestCase { $this->process = new CRM_Case_XMLProcessor_Process(); } - public function tearDown() { + public function tearDown(): void { $this->deleteMoreRelationshipTypes(); parent::tearDown(); diff --git a/tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php b/tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php index d524eecb49..b1e2526dc0 100644 --- a/tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php +++ b/tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php @@ -15,7 +15,7 @@ class CRM_Case_XMLProcessor_ReportTest extends CiviCaseTestCase { $this->report = new CRM_Case_XMLProcessor_Report(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php b/tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php index 9b2e244a22..ffb38360b9 100644 --- a/tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php @@ -85,7 +85,7 @@ class CRM_Contact_BAO_ActivitySearchTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - public function tearDown() { + public function tearDown(): void { $tablesToTruncate = [ 'civicrm_contact', 'civicrm_activity', diff --git a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php index a98d9343ad..d748416f7f 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php @@ -50,7 +50,7 @@ class CRM_Contact_BAO_ContactType_ContactTest extends CiviUnitTestCase { $this->team = $params['name']; } - public function tearDown() { + public function tearDown(): void { $this->quickCleanup(['civicrm_contact']); $query = " DELETE FROM civicrm_contact_type diff --git a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php index e726e82524..9bae2dfd98 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php @@ -51,7 +51,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase { * @throws \API_Exception * @throws \Civi\API\Exception\UnauthorizedException */ - public function tearDown() { + public function tearDown(): void { parent::tearDown(); ContactType::delete()->addWhere('id', 'IN', $this->ids['ContactType'])->execute(); } diff --git a/tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php b/tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php index c7cf9da084..9021286c4c 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php @@ -78,7 +78,7 @@ class CRM_Contact_BAO_ContactType_RelationshipTest extends CiviUnitTestCase { $this->organization_sponsor = $this->organizationCreate($params); } - public function tearDown() { + public function tearDown(): void { $this->quickCleanup(['civicrm_contact']); $query = " diff --git a/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php b/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php index b15dcf950b..d517143c58 100644 --- a/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php +++ b/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php @@ -260,7 +260,7 @@ class CRM_Contact_BAO_GroupContactCacheTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); $this->deleteTestObjects(); } diff --git a/tests/phpunit/CRM/Contact/BAO/GroupTest.php b/tests/phpunit/CRM/Contact/BAO/GroupTest.php index ebd2b6cff3..49c1a49a3f 100644 --- a/tests/phpunit/CRM/Contact/BAO/GroupTest.php +++ b/tests/phpunit/CRM/Contact/BAO/GroupTest.php @@ -31,7 +31,7 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { $this->quickCleanup(['civicrm_mapping_field', 'civicrm_mapping', 'civicrm_group', 'civicrm_saved_search']); } diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index 85ded73c22..7e4789b610 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -26,7 +26,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { * * @throws \Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); $tablesToTruncate = [ 'civicrm_group_contact', diff --git a/tests/phpunit/CRM/Contact/BAO/RelationshipTest.php b/tests/phpunit/CRM/Contact/BAO/RelationshipTest.php index 258a366195..1d0f42d891 100644 --- a/tests/phpunit/CRM/Contact/BAO/RelationshipTest.php +++ b/tests/phpunit/CRM/Contact/BAO/RelationshipTest.php @@ -33,7 +33,7 @@ class CRM_Contact_BAO_RelationshipTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - protected function tearDown() { + protected function tearDown(): void { $this->quickCleanup([ 'civicrm_relationship_type', 'civicrm_relationship', diff --git a/tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php b/tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php index e2dc8229b2..82506da86e 100644 --- a/tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php +++ b/tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php @@ -33,7 +33,7 @@ class CRM_Contact_BAO_SavedSearchTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { if (!empty($this->ids['CustomField'])) { foreach ($this->ids['CustomField'] as $type => $id) { $field = civicrm_api3('CustomField', 'getsingle', ['id' => $id]); diff --git a/tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php b/tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php index 35d87903a5..1dca40edfa 100644 --- a/tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php +++ b/tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php @@ -30,7 +30,7 @@ class CRM_Contact_Form_Task_DeleteTest extends CiviUnitTestCase { ]); } - protected function tearDown() { + protected function tearDown(): void { $this->quickCleanup([ 'civicrm_contact', ]); diff --git a/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php b/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php index f717c39cb9..1533229d38 100644 --- a/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php +++ b/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php @@ -39,7 +39,7 @@ class CRM_Contact_Form_Task_EmailCommonTest extends CiviUnitTestCase { * * Make sure the setting is returned to 'stock'. */ - public function tearDown() { + public function tearDown(): void { Civi::settings()->set('allow_mail_from_logged_in_contact', 0); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php b/tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php index e07f17c5d0..414fc6bf7b 100644 --- a/tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php +++ b/tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php @@ -28,7 +28,7 @@ class CRM_Contact_Form_Task_PrintMailingLabelTest extends CiviUnitTestCase { /** * Clean up after test. */ - protected function tearDown() { + protected function tearDown(): void { unset($this->_contactIds); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php index 07a2e21d20..1378e4f6bd 100644 --- a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php +++ b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php @@ -42,7 +42,7 @@ class CRM_Contact_Import_Parser_ContactTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanup(['civicrm_address', 'civicrm_phone', 'civicrm_email'], TRUE); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Page/AjaxTest.php b/tests/phpunit/CRM/Contact/Page/AjaxTest.php index be18ecdf30..e7e700ac22 100644 --- a/tests/phpunit/CRM/Contact/Page/AjaxTest.php +++ b/tests/phpunit/CRM/Contact/Page/AjaxTest.php @@ -20,7 +20,7 @@ class CRM_Contact_Page_AjaxTest extends CiviUnitTestCase { $this->originalRequest = $_REQUEST; } - public function tearDown() { + public function tearDown(): void { $_REQUEST = $this->originalRequest; parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php b/tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php index f629590c7a..537a4ed163 100644 --- a/tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php +++ b/tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php @@ -30,7 +30,7 @@ class CRM_Contact_Page_DedupeExceptionTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Page/View/NoteTest.php b/tests/phpunit/CRM/Contact/Page/View/NoteTest.php index c60d2c6a08..3ce4e7ee1a 100644 --- a/tests/phpunit/CRM/Contact/Page/View/NoteTest.php +++ b/tests/phpunit/CRM/Contact/Page/View/NoteTest.php @@ -31,7 +31,7 @@ class CRM_Contact_Page_View_NoteTest extends CiviUnitTestCase { * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php b/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php index 71d5481acb..dc5e8260fd 100644 --- a/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php +++ b/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php @@ -45,7 +45,7 @@ class CRM_Contact_Page_View_UserDashBoardTest extends CiviUnitTestCase { /** * Clean up after each test. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); $this->quickCleanup(['civicrm_uf_match']); CRM_Utils_Hook::singleton()->reset(); diff --git a/tests/phpunit/CRM/Contact/Page/View/UserDashboard/GroupContactTest.php b/tests/phpunit/CRM/Contact/Page/View/UserDashboard/GroupContactTest.php index 8876fccf80..0132c80925 100644 --- a/tests/phpunit/CRM/Contact/Page/View/UserDashboard/GroupContactTest.php +++ b/tests/phpunit/CRM/Contact/Page/View/UserDashboard/GroupContactTest.php @@ -30,7 +30,7 @@ class CRM_Contact_Page_View_UserDashboard_GroupContactTest extends CiviUnitTestC * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php index 83bbddffaf..9e05b4684e 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php @@ -23,7 +23,7 @@ class CRM_Contribute_BAO_ContributionTest extends CiviUnitTestCase { /** * Clean up after tests. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php index 503cc0f7bc..976e06cfcf 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php @@ -20,7 +20,7 @@ class CRM_Contribute_BAO_ContributionTypeTest extends CiviUnitTestCase { $this->organizationCreate(); } - public function teardown() { + public function tearDown(): void { $this->financialAccountDelete('Donations'); } diff --git a/tests/phpunit/CRM/Contribute/BAO/QueryTest.php b/tests/phpunit/CRM/Contribute/BAO/QueryTest.php index de58b9e1b9..cd796c3027 100644 --- a/tests/phpunit/CRM/Contribute/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/QueryTest.php @@ -7,7 +7,7 @@ */ class CRM_Contribute_BAO_QueryTest extends CiviUnitTestCase { - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php b/tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php index e3e8f4a037..e6d705aa91 100644 --- a/tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php +++ b/tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php @@ -109,7 +109,7 @@ class CRM_Contribute_Form_AdditionalPaymentTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); $this->quickCleanup(['civicrm_mailing_spool']); parent::tearDown(); diff --git a/tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php b/tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php index 1ab47a0d78..34fdb232c5 100644 --- a/tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php +++ b/tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php @@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_ConfirmTest extends CiviUnitTestCase { /** * Clean up DB. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php b/tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php index dfccbc146a..480e7a6ef8 100644 --- a/tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php +++ b/tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php @@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_MainTest extends CiviUnitTestCase { /** * Clean up DB. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php b/tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php index aba8e8fa25..28c7d5fc7e 100644 --- a/tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php +++ b/tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php @@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_ThankYouTest extends CiviUnitTestCase { /** * Clean up DB. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php index 50a9628c11..08df74f310 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php @@ -23,7 +23,7 @@ class CRM_Contribute_Form_ContributionPageTranslationTest extends CiviUnitTestCa CRM_Core_I18n_Schema::addLocale('fr_FR', 'en_US'); } - public function tearDown() { + public function tearDown(): void { global $dbLocale; if ($dbLocale) { CRM_Core_I18n_Schema::makeSinglelingual('en_US'); diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index 4a708a7b1f..3d66b71ec7 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -123,7 +123,7 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); $this->quickCleanup(['civicrm_note', 'civicrm_uf_match', 'civicrm_address']); } diff --git a/tests/phpunit/CRM/Contribute/Form/SearchTest.php b/tests/phpunit/CRM/Contribute/Form/SearchTest.php index 15a693267b..dd1291a7e2 100644 --- a/tests/phpunit/CRM/Contribute/Form/SearchTest.php +++ b/tests/phpunit/CRM/Contribute/Form/SearchTest.php @@ -30,7 +30,7 @@ class CRM_Contribute_Form_SearchTest extends CiviUnitTestCase { $this->ids['Contact']['contactID2'] = $this->individualCreate([], 2); } - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php b/tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php index bee4dc15c8..cd103eb110 100644 --- a/tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php +++ b/tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php @@ -23,7 +23,7 @@ class CRM_Contribute_Form_Task_InvoiceTest extends CiviUnitTestCase { /** * Clean up after each test. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); CRM_Utils_Hook::singleton()->reset(); } diff --git a/tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php b/tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php index 502c05295b..4b2ce0c1df 100644 --- a/tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php +++ b/tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php @@ -19,7 +19,7 @@ class CRM_Contribute_Form_Task_StatusTest extends CiviUnitTestCase { /** * Clean up after each test. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); CRM_Utils_Hook::singleton()->reset(); } diff --git a/tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php b/tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php index e445f6e36e..009bb8a48f 100644 --- a/tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php @@ -23,7 +23,7 @@ class CRM_Contribute_Import_Parser_ContributionTest extends CiviUnitTestCase { /** * Setup function. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Contribute/PseudoConstantTest.php b/tests/phpunit/CRM/Contribute/PseudoConstantTest.php index dab9941087..e8bdedddba 100644 --- a/tests/phpunit/CRM/Contribute/PseudoConstantTest.php +++ b/tests/phpunit/CRM/Contribute/PseudoConstantTest.php @@ -18,7 +18,7 @@ class CRM_Contribute_PseudoConstantTest extends CiviUnitTestCase { /** * Clean up after tests. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php index 70678998fd..288a4fc0c0 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php @@ -16,7 +16,7 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase { * * @throws \Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanup([], TRUE); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/BAO/CustomQueryTest.php b/tests/phpunit/CRM/Core/BAO/CustomQueryTest.php index d1a103d532..783d89a38a 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomQueryTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomQueryTest.php @@ -14,7 +14,7 @@ class CRM_Core_BAO_CustomQueryTest extends CiviUnitTestCase { * * @throws \Exception */ - public function tearDown() { + public function tearDown(): void { $tablesToTruncate = [ 'civicrm_contact', ]; diff --git a/tests/phpunit/CRM/Core/BAO/LocationTest.php b/tests/phpunit/CRM/Core/BAO/LocationTest.php index fb82c0ab6b..26cceaa8f6 100644 --- a/tests/phpunit/CRM/Core/BAO/LocationTest.php +++ b/tests/phpunit/CRM/Core/BAO/LocationTest.php @@ -38,7 +38,7 @@ class CRM_Core_BAO_LocationTest extends CiviUnitTestCase { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - public function tearDown() { + public function tearDown(): void { $tablesToTruncate = [ 'civicrm_contact', 'civicrm_openid', diff --git a/tests/phpunit/CRM/Core/BAO/MappingTest.php b/tests/phpunit/CRM/Core/BAO/MappingTest.php index fb71da022e..fee5ff7179 100644 --- a/tests/phpunit/CRM/Core/BAO/MappingTest.php +++ b/tests/phpunit/CRM/Core/BAO/MappingTest.php @@ -12,7 +12,7 @@ class CRM_Core_BAO_MappingTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanup(['civicrm_mapping_field', 'civicrm_mapping']); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/BAO/OpenIDTest.php b/tests/phpunit/CRM/Core/BAO/OpenIDTest.php index 3bf68c709c..85b5899d44 100644 --- a/tests/phpunit/CRM/Core/BAO/OpenIDTest.php +++ b/tests/phpunit/CRM/Core/BAO/OpenIDTest.php @@ -8,7 +8,7 @@ use Civi\Api4\OpenID; */ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { - public function tearDown() { + public function tearDown(): void { $this->quickCleanup(['civicrm_contact', 'civicrm_openid', 'civicrm_email']); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php b/tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php index d94421f289..6298c020bf 100644 --- a/tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php +++ b/tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php @@ -24,7 +24,7 @@ class CRM_Core_BAO_SchemaHandlerTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { parent::tearDown(); $this->callAPISuccess('System', 'updateindexes', []); } diff --git a/tests/phpunit/CRM/Core/BAO/SettingTest.php b/tests/phpunit/CRM/Core/BAO/SettingTest.php index 34cf4a8f47..27e3820238 100644 --- a/tests/phpunit/CRM/Core/BAO/SettingTest.php +++ b/tests/phpunit/CRM/Core/BAO/SettingTest.php @@ -33,7 +33,7 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { global $civicrm_setting; $civicrm_setting = $this->origSetting; $this->quickCleanup(['civicrm_contribution']); diff --git a/tests/phpunit/CRM/Core/CommunityMessagesTest.php b/tests/phpunit/CRM/Core/CommunityMessagesTest.php index e4a4e8b643..8edeed810e 100644 --- a/tests/phpunit/CRM/Core/CommunityMessagesTest.php +++ b/tests/phpunit/CRM/Core/CommunityMessagesTest.php @@ -129,7 +129,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase { self::initWebResponses(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); CRM_Utils_Time::resetTime(); } diff --git a/tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php b/tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php index 1bf6542772..6457a85fb1 100644 --- a/tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php +++ b/tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php @@ -48,7 +48,7 @@ class CRM_Core_DAO_AllCoreTablesTest extends CiviUnitTestCase { }; } - protected function tearDown() { + protected function tearDown(): void { CRM_Utils_Hook::singleton()->reset(); CRM_Core_DAO_AllCoreTables::init(1); parent::tearDown(); diff --git a/tests/phpunit/CRM/Core/ErrorTest.php b/tests/phpunit/CRM/Core/ErrorTest.php index 94ecc5f96f..c744470213 100644 --- a/tests/phpunit/CRM/Core/ErrorTest.php +++ b/tests/phpunit/CRM/Core/ErrorTest.php @@ -22,7 +22,7 @@ class CRM_Core_ErrorTest extends CiviUnitTestCase { $config->configAndLogDir = $this->createTempDir('test-log-'); } - public function tearDown() { + public function tearDown(): void { $config = CRM_Core_Config::singleton(); $config->configAndLogDir = $this->oldConfigAndLogDir; parent::tearDown(); diff --git a/tests/phpunit/CRM/Core/FieldOptionsTest.php b/tests/phpunit/CRM/Core/FieldOptionsTest.php index fc26206354..f8d4c4009e 100644 --- a/tests/phpunit/CRM/Core/FieldOptionsTest.php +++ b/tests/phpunit/CRM/Core/FieldOptionsTest.php @@ -35,7 +35,7 @@ class CRM_Core_FieldOptionsTest extends CiviUnitTestCase { CRM_Utils_Hook::singleton()->setHook('civicrm_fieldOptions', [$this, 'hook_civicrm_fieldOptions']); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); $this->quickCleanup(['civicrm_custom_field', 'civicrm_custom_group']); } diff --git a/tests/phpunit/CRM/Core/I18n/LocaleTest.php b/tests/phpunit/CRM/Core/I18n/LocaleTest.php index 95f8d5e0c8..56215e6438 100644 --- a/tests/phpunit/CRM/Core/I18n/LocaleTest.php +++ b/tests/phpunit/CRM/Core/I18n/LocaleTest.php @@ -14,14 +14,6 @@ */ class CRM_Core_I18n_LocaleTest extends CiviUnitTestCase { - public function setUp() { - parent::setUp(); - } - - public function tearDown() { - parent::tearDown(); - } - /** * */ diff --git a/tests/phpunit/CRM/Core/I18n/SchemaTest.php b/tests/phpunit/CRM/Core/I18n/SchemaTest.php index 4c1f04c0b5..d7d7b8c5cd 100644 --- a/tests/phpunit/CRM/Core/I18n/SchemaTest.php +++ b/tests/phpunit/CRM/Core/I18n/SchemaTest.php @@ -30,7 +30,7 @@ class CRM_Core_I18n_SchemaTest extends CiviUnitTestCase { parent::setUp(); } - public function tearDown() { + public function tearDown(): void { CRM_Core_I18n_Schema::makeSinglelingual('en_US'); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/InnoDBIndexerTest.php b/tests/phpunit/CRM/Core/InnoDBIndexerTest.php index 8ec73a16a8..7121591d42 100644 --- a/tests/phpunit/CRM/Core/InnoDBIndexerTest.php +++ b/tests/phpunit/CRM/Core/InnoDBIndexerTest.php @@ -6,7 +6,7 @@ */ class CRM_Core_InnoDBIndexerTest extends CiviUnitTestCase { - public function tearDown() { + public function tearDown(): void { // May or may not cleanup well if there's a bug in the indexer. // This is better than nothing -- and better than duplicating the // cleanup logic. diff --git a/tests/phpunit/CRM/Core/ManagedEntitiesTest.php b/tests/phpunit/CRM/Core/ManagedEntitiesTest.php index a8e4c2801f..8468b8fae2 100644 --- a/tests/phpunit/CRM/Core/ManagedEntitiesTest.php +++ b/tests/phpunit/CRM/Core/ManagedEntitiesTest.php @@ -97,7 +97,7 @@ class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase { $this->apiKernel->registerApiProvider($this->adhocProvider); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); \Civi::reset(); } diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php index 508f729322..ed1bfcf702 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php @@ -39,7 +39,7 @@ class CRM_Core_Payment_AuthorizeNetIPNTest extends CiviUnitTestCase { $this->_contributionPageID = $contributionPage['id']; } - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php index 4e1bab5c6b..94ec92778f 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php @@ -31,7 +31,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase { $GLOBALS['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK'] = []; } - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Core/Payment/BaseIPNTest.php b/tests/phpunit/CRM/Core/Payment/BaseIPNTest.php index 930819c0c3..6ea7622e3f 100644 --- a/tests/phpunit/CRM/Core/Payment/BaseIPNTest.php +++ b/tests/phpunit/CRM/Core/Payment/BaseIPNTest.php @@ -93,7 +93,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase { /** * Tear down after class. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); CRM_Member_PseudoConstant::membershipStatus(NULL, NULL, 'name', TRUE); } diff --git a/tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php b/tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php index 201b5cc07d..d5ee6ce621 100644 --- a/tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php +++ b/tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php @@ -47,7 +47,7 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase { /** * Tear down function. */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Core/Payment/PaypalProTest.php b/tests/phpunit/CRM/Core/Payment/PaypalProTest.php index 5a96d6e496..f4be1f1275 100644 --- a/tests/phpunit/CRM/Core/Payment/PaypalProTest.php +++ b/tests/phpunit/CRM/Core/Payment/PaypalProTest.php @@ -27,7 +27,7 @@ class CRM_Core_Payment_PaypalProTest extends CiviUnitTestCase { $this->processor = Civi\Payment\System::singleton()->getById($this->ids['PaymentProcessor']['paypal_pro']); } - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Core/Payment/PaypalStdTest.php b/tests/phpunit/CRM/Core/Payment/PaypalStdTest.php index 92a28eb376..7b9335590a 100644 --- a/tests/phpunit/CRM/Core/Payment/PaypalStdTest.php +++ b/tests/phpunit/CRM/Core/Payment/PaypalStdTest.php @@ -40,7 +40,7 @@ class CRM_Core_Payment_PaypalStdTest extends CiviUnitTestCase { /** * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php b/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php index 82c6e9c198..a7756380f4 100644 --- a/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php +++ b/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php @@ -26,7 +26,7 @@ class CRM_Dedupe_DedupeFinderTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { foreach ($this->contactIDs as $contactId) { $this->contactDelete($contactId); diff --git a/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php b/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php index 8d0c38befc..4c172c23fb 100644 --- a/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php +++ b/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php @@ -40,7 +40,7 @@ class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase { * * @throws \CRM_Core_Exception */ - public function tearDown() { + public function tearDown(): void { $this->eventDelete($this->_eventId); $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php b/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php index 329850de10..a92d7cd7f5 100644 --- a/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php +++ b/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php @@ -78,7 +78,7 @@ class CRM_Event_BAO_ChangeFeeSelectionTest extends CiviUnitTestCase { /** * Clean up after test. */ - public function tearDown() { + public function tearDown(): void { $this->eventDelete($this->_eventId); $this->quickCleanUpFinancialEntities(); } diff --git a/tests/phpunit/CRM/Event/Form/SearchTest.php b/tests/phpunit/CRM/Event/Form/SearchTest.php index 16b6a39dfd..7899cf2ff1 100644 --- a/tests/phpunit/CRM/Event/Form/SearchTest.php +++ b/tests/phpunit/CRM/Event/Form/SearchTest.php @@ -34,7 +34,7 @@ class CRM_Event_Form_SearchTest extends CiviUnitTestCase { ]); } - public function tearDown() { + public function tearDown(): void { $this->quickCleanUpFinancialEntities(); parent::tearDown(); } diff --git a/tests/phpunit/CRM/Extension/BrowserTest.php b/tests/phpunit/CRM/Extension/BrowserTest.php index fc185355f3..7c25f65c5a 100644 --- a/tests/phpunit/CRM/Extension/BrowserTest.php +++ b/tests/phpunit/CRM/Extension/BrowserTest.php @@ -10,7 +10,7 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase { parent::setUp(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Extension/Container/BasicTest.php b/tests/phpunit/CRM/Extension/Container/BasicTest.php index 9efe456055..fd911ed703 100644 --- a/tests/phpunit/CRM/Extension/Container/BasicTest.php +++ b/tests/phpunit/CRM/Extension/Container/BasicTest.php @@ -10,7 +10,7 @@ class CRM_Extension_Container_BasicTest extends CiviUnitTestCase { parent::setUp(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Extension/Container/CollectionTest.php b/tests/phpunit/CRM/Extension/Container/CollectionTest.php index 0fadefdb05..bc9d419d43 100644 --- a/tests/phpunit/CRM/Extension/Container/CollectionTest.php +++ b/tests/phpunit/CRM/Extension/Container/CollectionTest.php @@ -19,7 +19,7 @@ class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase { parent::setUp(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); } diff --git a/tests/phpunit/CRM/Extension/Container/StaticTest.php b/tests/phpunit/CRM/Extension/Container/StaticTest.php index 6a5a6835c1..9e5f1209d8 100644 --- a/tests/phpunit/CRM/Extension/Container/StaticTest.php +++ b/tests/phpunit/CRM/Extension/Container/StaticTest.php @@ -10,7 +10,7 @@ class CRM_Extension_Container_StaticTest extends CiviUnitTestCase { parent::setUp(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); } -- 2.25.1