[PHPUNIT8] add void to more teardown()
authoreileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 02:12:59 +0000 (15:12 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 02:14:19 +0000 (15:14 +1300)
69 files changed:
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/Activity/Form/SearchTest.php
tests/phpunit/CRM/Batch/BAO/BatchTest.php
tests/phpunit/CRM/Batch/Form/EntryTest.php
tests/phpunit/CRM/Case/BAO/CaseTest.php
tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php
tests/phpunit/CRM/Case/XMLProcessor/ProcessTest.php
tests/phpunit/CRM/Case/XMLProcessor/ReportTest.php
tests/phpunit/CRM/Contact/BAO/ActivitySearchTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php
tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php
tests/phpunit/CRM/Contact/BAO/GroupTest.php
tests/phpunit/CRM/Contact/BAO/QueryTest.php
tests/phpunit/CRM/Contact/BAO/RelationshipTest.php
tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php
tests/phpunit/CRM/Contact/Form/Task/DeleteTest.php
tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php
tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php
tests/phpunit/CRM/Contact/Page/AjaxTest.php
tests/phpunit/CRM/Contact/Page/DedupeExceptionTest.php
tests/phpunit/CRM/Contact/Page/View/NoteTest.php
tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php
tests/phpunit/CRM/Contact/Page/View/UserDashboard/GroupContactTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php
tests/phpunit/CRM/Contribute/BAO/QueryTest.php
tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php
tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php
tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php
tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php
tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php
tests/phpunit/CRM/Contribute/Form/SearchTest.php
tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php
tests/phpunit/CRM/Contribute/Form/Task/StatusTest.php
tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php
tests/phpunit/CRM/Contribute/PseudoConstantTest.php
tests/phpunit/CRM/Core/BAO/CustomFieldTest.php
tests/phpunit/CRM/Core/BAO/CustomQueryTest.php
tests/phpunit/CRM/Core/BAO/LocationTest.php
tests/phpunit/CRM/Core/BAO/MappingTest.php
tests/phpunit/CRM/Core/BAO/OpenIDTest.php
tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php
tests/phpunit/CRM/Core/BAO/SettingTest.php
tests/phpunit/CRM/Core/CommunityMessagesTest.php
tests/phpunit/CRM/Core/DAO/AllCoreTablesTest.php
tests/phpunit/CRM/Core/ErrorTest.php
tests/phpunit/CRM/Core/FieldOptionsTest.php
tests/phpunit/CRM/Core/I18n/LocaleTest.php
tests/phpunit/CRM/Core/I18n/SchemaTest.php
tests/phpunit/CRM/Core/InnoDBIndexerTest.php
tests/phpunit/CRM/Core/ManagedEntitiesTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php
tests/phpunit/CRM/Core/Payment/PaypalProTest.php
tests/phpunit/CRM/Core/Payment/PaypalStdTest.php
tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php
tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php
tests/phpunit/CRM/Event/Form/SearchTest.php
tests/phpunit/CRM/Extension/BrowserTest.php
tests/phpunit/CRM/Extension/Container/BasicTest.php
tests/phpunit/CRM/Extension/Container/CollectionTest.php
tests/phpunit/CRM/Extension/Container/StaticTest.php

index 63d299314d84e7005ebe1d008cd9868828444d5f..30c927b7f5b04c2acce17df0f165c9254cb5d41a 100644 (file)
@@ -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',
index 2c7d4faa3224807f5da36548d0b3710ae8f57aa5..3cddd3f2d51f2d9861de4af49bc87a575339f869 100644 (file)
@@ -15,7 +15,7 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase {
     ]);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_activity',
       'civicrm_activity_contact',
index 0bda3569ccab07f0892184510770f48aec08dbfe..c3fa203b0fd0b9500492c3d3171e83ae405d9e83 100644 (file)
@@ -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']);
   }
index 3d9dbbcb3f4cbd3e52d5b6f1bbdec18611b2fb9e..3af9d83648fa76b2f71a0e280a552380ccd41226 100644 (file)
@@ -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])) {
index f2af4b77e76ed55264a21bbe3e915c4cb2acd01d..b16fe72620558b156044f2a97725f2282c8edd6d 100644 (file)
@@ -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);
   }
index 493094e2044bd9e16d44bb7ebffddb4a46158359..82455b571c1a285ffd8c3007f01031e85ad0c1a4 100644 (file)
@@ -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();
   }
index def111e16a8fb2392914486c08dddce1325e6eaa..d287613b413033709487c704582729ac2a2bd555 100644 (file)
@@ -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();
index d524eecb495f17a92498f30c5d2730674b07c11d..b1e2526dc0b5aeb35925c0a844a1fd135c73d0eb 100644 (file)
@@ -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();
   }
 
index 9b2e244a22a913df4bc0a72decf75c16efa6f749..ffb38360b959851c908ad8a893c077d1129185e4 100644 (file)
@@ -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',
index a98d9343ad92de1b662c9093ca9f1c4823fc4072..d748416f7f2d0561f1e9df68b6cec0f09f39493e 100644 (file)
@@ -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
index e726e82524b4edbf93750c1448e2ca21881c802f..9bae2dfd98d9188c39b9cd0984f0167c9bbcacfd 100644 (file)
@@ -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();
   }
index c7cf9da084db54dd6c436339990b70ab425d42db..9021286c4c946d0f51a73c82e1579f8673772725 100644 (file)
@@ -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 = "
index b15dcf950b448e3fcb4835124766d5dbfda5d729..d517143c58b27441096f5b086e2e880bac799022 100644 (file)
@@ -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();
   }
index ebd2b6cff3590bf85a8d441c0a64efcd71d1cef0..49c1a49a3f6f38825478b6ca43092d4dd66dc301 100644 (file)
@@ -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']);
   }
 
index 85ded73c22224bad350472917216db7ddd93b4a3..7e4789b6106dfe13eb42baf37f3647f10ad24571 100644 (file)
@@ -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',
index 258a366195c522625fe0773c6574e0c42d277bdf..1d0f42d89153c3a8c983162c0f836bffe9557c0e 100644 (file)
@@ -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',
index e2dc8229b21a5b8aade0c26718e4c1330bab8c3b..82506da86eec49eb077755f4e9954e158cf27aad 100644 (file)
@@ -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]);
index 35d87903a52b7782a2240184234b2520e7089ff1..1dca40edfa9c89cc942f7c946a6cf56e086581d0 100644 (file)
@@ -30,7 +30,7 @@ class CRM_Contact_Form_Task_DeleteTest extends CiviUnitTestCase {
     ]);
   }
 
-  protected function tearDown() {
+  protected function tearDown(): void {
     $this->quickCleanup([
       'civicrm_contact',
     ]);
index f717c39cb961c63b1e720c02df8934ae65a50105..1533229d38e7bf20d0fbb48241a694459897b441 100644 (file)
@@ -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();
   }
index e07f17c5d095d01fbda47431a06de4f95276d439..414fc6bf7bf91c8d53553469013f3aca81aa6de3 100644 (file)
@@ -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();
   }
index 07a2e21d205b277219e0d6fd2c8baa242ea77fe5..1378e4f6bd0a33a264a5fff91bf6b55ee7afc374 100644 (file)
@@ -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();
   }
index be18ecdf30a4a8c4fc7a31cc0dbfffaf73a7ccef..e7e700ac228fea8b2d34750450a339ec46f6731a 100644 (file)
@@ -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();
   }
index f629590c7a5bd818c4156d63782d5ae518f6fdc1..537a4ed163182c05c1c83aa5859fd2455c33c65e 100644 (file)
@@ -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();
   }
 
index c60d2c6a08f506945a3e90f70703c4fd0f6cc3cb..3ce4e7ee1a47a5aa5712d2ca5196a962f89e0a1b 100644 (file)
@@ -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();
   }
 
index 71d5481acb17b205de605406c4f2a6c02128c75f..dc5e8260fdcce24c17c372024c261b41612ca7cc 100644 (file)
@@ -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();
index 8876fccf800cc00e550942eb949a4455c94b9398..0132c809256838c6d688deaf4e87ee496ec9acb7 100644 (file)
@@ -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();
   }
 
index 83bbddffaf19f746806a068cac06aaa3dea72e03..9e05b4684e51bf4c892bb139f35135e8cf0d063c 100644 (file)
@@ -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();
   }
index 503cc0f7bca61cba8b8586386fcda0408df0ebfc..976e06cfcf21022e6497ee805ce730a9080d5637 100644 (file)
@@ -20,7 +20,7 @@ class CRM_Contribute_BAO_ContributionTypeTest extends CiviUnitTestCase {
     $this->organizationCreate();
   }
 
-  public function teardown() {
+  public function tearDown(): void {
     $this->financialAccountDelete('Donations');
   }
 
index de58b9e1b91b60bea172a40b93618e806ada4901..cd796c30277f6694ecf6d3bdc962f94bbb8a546c 100644 (file)
@@ -7,7 +7,7 @@
  */
 class CRM_Contribute_BAO_QueryTest extends CiviUnitTestCase {
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     parent::tearDown();
   }
index e3e8f4a037915d66114ed3138395102077da3bb9..e6d705aa91271acb714aea920b321405eeaf7c82 100644 (file)
@@ -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();
index 1ab47a0d783a128c93e331a90d520634c633efd9..34fdb232c59ae8c6e968f71e5d8e13135b5c3fdf 100644 (file)
@@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_ConfirmTest extends CiviUnitTestCase {
   /**
    * Clean up DB.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
   }
 
index dfccbc146af9aec4b99458bcea5548c8789ea71a..480e7a6ef8ba88f13caedb7c00a918db9fd1faff 100644 (file)
@@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_MainTest extends CiviUnitTestCase {
   /**
    * Clean up DB.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
   }
 
index aba8e8fa251bd481ff139f422553c787edd890b7..28c7d5fc7e41d857909b868987ca44c207db6cfa 100644 (file)
@@ -21,7 +21,7 @@ class CRM_Contribute_Form_Contribution_ThankYouTest extends CiviUnitTestCase {
   /**
    * Clean up DB.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
   }
 
index 50a9628c11f325b012ae3362e5a853e7a0b8b914..08df74f310da108167c2957421aab16871bc760c 100644 (file)
@@ -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');
index 4a708a7b1f9af75b0b69eeeffbec2f2b4155170a..3d66b71ec71350175eed6acba3f5be002ae0757b 100644 (file)
@@ -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']);
   }
index 15a693267b6053959e593c73f85106e6652f5059..dd1291a7e2850edaff7071cec758f5c822f67fd3 100644 (file)
@@ -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();
   }
index bee4dc15c8a60035cf743202a87b5e8eccd98480..cd103eb110d517f650674f596c5b12632241c095 100644 (file)
@@ -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();
   }
index 502c05295bc75e689df9d401f409fb9dfaf001a9..4b2ce0c1dfaf2006e4488d146a659560765da639 100644 (file)
@@ -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();
   }
index e445f6e36ea5ffb6ff7f88499fe9b51b68553745..009bb8a48f3bb3e98b47dfcd2fa773d5ee0b81e8 100644 (file)
@@ -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();
   }
index dab9941087e61be501a425811e4f343ca887995c..e8bdedddbad885c3a650e55044fbd093af9fca49 100644 (file)
@@ -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();
   }
index 70678998fd0022bf8c43c2f79d826bcad5b76f18..288a4fc0c01a6f651a2f6fe7a7e79de1998b972b 100644 (file)
@@ -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();
   }
index d1a103d53297d76b99452fdea6b42496754382b2..783d89a38a842c4eccb3cde0f314f8f61df17931 100644 (file)
@@ -14,7 +14,7 @@ class CRM_Core_BAO_CustomQueryTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_contact',
     ];
index fb82c0ab6b104267569349fa377afc8030e64b3a..26cceaa8f62efd808a3e61e0a8cda897bd7190b8 100644 (file)
@@ -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',
index fb71da022eaf7391cd7e59acbae0923e1cd3637b..fee5ff7179c971f088639fcd9293e9e464ad4aa9 100644 (file)
@@ -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();
   }
index 3bf68c709c9e0d347dcf326615ca868f1bed9f94..85b5899d440eb2803c1e9638636f142a4bd781ad 100644 (file)
@@ -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();
   }
index d94421f28927b3517accecd84786a7b7bbf915f8..6298c020bf1d341c650b81af2948eb9d334c1b6d 100644 (file)
@@ -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', []);
   }
index 34cf4a8f47d7e286eb3c4aa6c3ed6db4bc740286..27e3820238dd8c76efe85766251be3c1c708a4d7 100644 (file)
@@ -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']);
index e4a4e8b643186af8e77347bd44c2897ba6696a4b..8edeed810e66bf2b2f6c5020dbeef933b8c5e2af 100644 (file)
@@ -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();
   }
index 1bf6542772ee61527e38c3432bb99e143244882e..6457a85fb141d70cce2fa8aed766199316d79278 100644 (file)
@@ -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();
index 94ecc5f96f4e52fc1bea932e9872dc839939304d..c7444702132a93b005f77296c9401f33f6ae348b 100644 (file)
@@ -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();
index fc26206354de848632ba7d967b19b11c24ec95bd..f8d4c4009e6efa1624000fb5520a62680bb15571 100644 (file)
@@ -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']);
   }
index 95f8d5e0c8c7625f2716863506060fdde8043e85..56215e64383b03c6c8f934a43318aa06baa40308 100644 (file)
  */
 class CRM_Core_I18n_LocaleTest extends CiviUnitTestCase {
 
-  public function setUp() {
-    parent::setUp();
-  }
-
-  public function tearDown() {
-    parent::tearDown();
-  }
-
   /**
    *
    */
index 4c1f04c0b519898d478908124443e6f2f86e9780..d7d7b8c5cdee7f6643561a6e4d18ed31ceaea0fb 100644 (file)
@@ -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();
   }
index 8ec73a16a86fd80f07346a095a544ded57da221a..7121591d4283af820fccb3c516e08fca5fecd9ff 100644 (file)
@@ -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.
index a8e4c2801f99efb6807c5716101bf37e1f3cc439..8468b8fae2c54adc7644cb680cc545148f3ea53d 100644 (file)
@@ -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();
   }
index 508f7293221073be5534014234627a06e594959f..ed1bfcf702cb8cb9b415537865199a16605e7028 100644 (file)
@@ -39,7 +39,7 @@ class CRM_Core_Payment_AuthorizeNetIPNTest extends CiviUnitTestCase {
     $this->_contributionPageID = $contributionPage['id'];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
   }
 
index 4e1bab5c6bc04706e190282926de4c1e454833d6..94ec92778f36eb7e4359b384ce63b2de8c04edf1 100644 (file)
@@ -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();
   }
 
index 930819c0c3dc0d4c3222616a362bfa2ced33384d..6ea7622e3fb87a01b0dca2553f682d426dcdd1bb 100644 (file)
@@ -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);
   }
index 201b5cc07db3d4f7456349855ac19a876012389e..d5ee6ce62132294c8a8d393b20ff9fcea232a19d 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase {
   /**
    * Tear down function.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
   }
 
index 5a96d6e496b00c8d31c2e7c07a2bbc221c5502f6..f4be1f12752b4a3a611954991658c34d2740190f 100644 (file)
@@ -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();
   }
index 92a28eb376ad443369797375fde6980b8605978e..7b9335590a5f1f1cea9cb0c245a71e963cc4c97b 100644 (file)
@@ -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();
   }
index 82c6e9c1984da1936dc0901d317f84eeaf43e596..a7756380f4f5cd0b29f0c586c006bf9a3e235d02 100644 (file)
@@ -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);
index 8d0c38befc1e14e0063d2d8f5ffba4685daca51c..4c172c23fb8b1dd438996756e56ed8e8fd7d0cc9 100644 (file)
@@ -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();
   }
index 329850de106deb12fc510a5069a12db7a9c8f748..a92d7cd7f58d1a36cd13d00bf702efaaff941dce 100644 (file)
@@ -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();
   }
index 16b6a39dfdfb99f0f79ec548d6f024af21c2fae8..7899cf2ff1fdd27c74c1d264f923df2e23ec18da 100644 (file)
@@ -34,7 +34,7 @@ class CRM_Event_Form_SearchTest extends CiviUnitTestCase {
     ]);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     parent::tearDown();
   }
index fc185355f3ba01397b9d0aa858c91269943b5949..7c25f65c5a8ad2932aea42c5197e2cb30a25dc7d 100644 (file)
@@ -10,7 +10,7 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase {
     parent::setUp();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
   }
 
index 9efe4560552d6dc7ae32d3a75c6f044b2458f183..fd911ed703d789c22d2dd63f79a1fe5a2f7f6d82 100644 (file)
@@ -10,7 +10,7 @@ class CRM_Extension_Container_BasicTest extends CiviUnitTestCase {
     parent::setUp();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
   }
 
index 0fadefdb053395098ab7947eefca704581b0c7c6..bc9d419d434b8bd60c5f365b79f197e6ccd7cfcc 100644 (file)
@@ -19,7 +19,7 @@ class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase {
     parent::setUp();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
   }
 
index 6a5a6835c1d82674c144024eb4720849f997dc34..9e5f1209d854bb2dfea08b2b31b45e4ad5bd663f 100644 (file)
@@ -10,7 +10,7 @@ class CRM_Extension_Container_StaticTest extends CiviUnitTestCase {
     parent::setUp();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
   }