Add :void return type to tearDown on a bunch of unit tests
authoreileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 01:51:27 +0000 (14:51 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 01:51:45 +0000 (14:51 +1300)
51 files changed:
tests/phpunit/api/v3/ACLCachingTest.php
tests/phpunit/api/v3/ACLPermissionTest.php
tests/phpunit/api/v3/APIWrapperTest.php
tests/phpunit/api/v3/ActivityTest.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/AttachmentTest.php
tests/phpunit/api/v3/CRM11793Test.php
tests/phpunit/api/v3/CaseTest.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/ContributionPageTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/CustomApiTest.php
tests/phpunit/api/v3/CustomFieldTest.php
tests/phpunit/api/v3/CustomGroupTest.php
tests/phpunit/api/v3/CustomValueContactTypeTest.php
tests/phpunit/api/v3/CustomValueTest.php
tests/phpunit/api/v3/EventTest.php
tests/phpunit/api/v3/ExtensionTest.php
tests/phpunit/api/v3/FinancialTypeACLTest.php
tests/phpunit/api/v3/GrantTest.php
tests/phpunit/api/v3/GroupNestingTest.php
tests/phpunit/api/v3/GroupTest.php
tests/phpunit/api/v3/JobProcessMailingTest.php
tests/phpunit/api/v3/JobProcessMembershipTest.php
tests/phpunit/api/v3/JobTestCustomDataTest.php
tests/phpunit/api/v3/LoggingTest.php
tests/phpunit/api/v3/MailingContactTest.php
tests/phpunit/api/v3/MailingTest.php
tests/phpunit/api/v3/MembershipStatusTest.php
tests/phpunit/api/v3/MembershipTest.php
tests/phpunit/api/v3/MessageTemplateTest.php
tests/phpunit/api/v3/MultilingualTest.php
tests/phpunit/api/v3/OrderTest.php
tests/phpunit/api/v3/ParticipantTest.php
tests/phpunit/api/v3/PaymentProcessorTypeTest.php
tests/phpunit/api/v3/PaymentTest.php
tests/phpunit/api/v3/PledgePaymentTest.php
tests/phpunit/api/v3/PledgeTest.php
tests/phpunit/api/v3/PriceFieldTest.php
tests/phpunit/api/v3/PriceFieldValueTest.php
tests/phpunit/api/v3/ProfileTest.php
tests/phpunit/api/v3/RelationshipTest.php
tests/phpunit/api/v3/RelationshipTypeTest.php
tests/phpunit/api/v3/ReportTemplateTest.php
tests/phpunit/api/v3/SettingTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php
tests/phpunit/api/v3/UFFieldTest.php
tests/phpunit/api/v3/UFGroupTest.php
tests/phpunit/api/v3/UFJoinTest.php
tests/phpunit/api/v3/UFMatchTest.php

index be4674a0c09574215898ff846bedc9b74265d67e..5c0bc7f5d3d119197ae1ed93fe548e1fd1fa209e 100644 (file)
@@ -29,7 +29,7 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
    * (non-PHPdoc)
    * @see CiviUnitTestCase::tearDown()
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_activity',
     ];
index f587ad13f991362359134a94aa822cfdd2322aab..b31278c940c50780a461315d7021b14bb74d330f 100644 (file)
@@ -39,7 +39,7 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
    * (non-PHPdoc)
    * @see CiviUnitTestCase::tearDown()
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->cleanUpAfterACLs();
     $tablesToTruncate = [
       'civicrm_contact',
index 0d18b52106776443041072aca28f3ac9ede90cdb..2c0734927cf497f464abbd7042bd139d5d6401d3 100644 (file)
@@ -27,20 +27,12 @@ class api_v3_APIWrapperTest extends CiviUnitTestCase {
    * Sets up the fixture, for example, opens a network connection.
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
     CRM_Utils_Hook_UnitTests::singleton()->setHook('civicrm_apiWrappers', [$this, 'onApiWrappers']);
   }
 
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   * This method is called after a test is executed.
-   */
-  protected function tearDown() {
-    parent::tearDown();
-  }
-
   /**
    * @param $apiWrappers
    * @param $apiRequest
index 2ab72b6b38aea61824e8943f3c8b99a76abda3ae..082f14271446d626b5dadd65d6d493bb9105f141 100644 (file)
@@ -59,7 +59,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
    * Connect to the database, truncate the tables that will be used
    * and redirect stdin to a temporary file
    */
-  public function setUp() {
+  public function setUp(): void {
     // Connect to the database
     parent::setUp();
 
@@ -104,7 +104,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
    *
    * This method is called after a test is executed.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_contact',
       'civicrm_activity',
index 5e5e89c61af5e4a08ceb65baf86e2ee1add63e4e..83646351d8c1c8164a363d290fff60aea7391a88 100644 (file)
@@ -48,7 +48,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->locationTypeDelete($this->_locationTypeID);
     $this->contactDelete($this->_contactID);
     $this->quickCleanup(['civicrm_address', 'civicrm_relationship']);
index 346debc65509d94bf9ba77f2def6f1ec15f5bbf4..b13295dd25eb9d0a87346fe8159f6e90da2c205c 100644 (file)
@@ -53,7 +53,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
     file_put_contents($this->tmpFile('mytest.txt'), 'This comes from a file');
   }
 
-  protected function tearDown() {
+  protected function tearDown(): void {
     parent::tearDown();
     $this->cleanupFiles();
     \Civi::reset();
index b83fcfaba0be69d28be0bddc58ad7443f1ea331f..f5bbbdda47f643a56eaaf22fd1b79a7946d06af2 100644 (file)
@@ -26,7 +26,7 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
     $this->organizationCreate();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
   }
 
index 9b5bb920d2eb0499cbe79c37ec7e5b9c7a9b9781..edeb4739d52be5413ec75ba4e37233d04471c5b0 100644 (file)
@@ -80,7 +80,7 @@ class api_v3_CaseTest extends CiviCaseTestCase {
     $this->settingsStack = new \Civi\Core\SettingsStack();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->settingsStack->popAll();
     parent::tearDown();
   }
index 60392857617fac77340c76b5eca554155edebc81..5dfac710564c128d93fb2200b4924379467e5a28 100644 (file)
@@ -53,7 +53,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
    *
    * This method is called after a test is executed.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
     $this->quickCleanup(['civicrm_case_type', 'civicrm_uf_match']);
   }
index c9f7317acbd18e7b7bc1e709a2b6230759cdda49..f4b4562ef1b5413a423a11e5454f8fd318662dd9 100644 (file)
@@ -83,7 +83,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     foreach ($this->contactIds as $id) {
       $this->callAPISuccess('contact', 'delete', ['id' => $id]);
     }
index c3f95ad348edee379bd30be54d7317d2f47593be..3a01ca7820a21c920d8b033a8363e6cdc4a129c1 100644 (file)
@@ -108,7 +108,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_uf_match'], TRUE);
     $financialAccounts = $this->callAPISuccess('FinancialAccount', 'get', []);
index 2c78250848c1e9ffddf1f018bd3fe6059f1084bc..6a2849b7663c7667915b1a83385d87dabf6716e7 100644 (file)
@@ -24,7 +24,7 @@ class api_v3_CustomApiTest extends CiviUnitTestCase {
     $this->installApi();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
     CRM_Core_DAO::executeQuery('DROP TABLE civicrm_mailing_provider_data');
   }
index 6ec1b9cee3e330b6c260c886268bd1ebbba0ccbc..303a91d7c8d122935b751fcebf81b8677fe18201 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanup([
       'civicrm_contact',
       'civicrm_file',
index e891f28eb079d70669bcd769d8f26f74c8fe4159..03cb6a85d05de32fcadf0ef7f7e119dbebbccec2 100644 (file)
@@ -39,7 +39,7 @@ class api_v3_CustomGroupTest extends CiviUnitTestCase {
     parent::setUp();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = ['civicrm_custom_group', 'civicrm_custom_field'];
     // true tells quickCleanup to drop any tables that might have been created in the test
     $this->quickCleanup($tablesToTruncate, TRUE);
index ac35bec145ccd005913aead2756d2c5b648c656a..2f012d95852473dfdfed1692248e9de8499adebc 100644 (file)
@@ -90,7 +90,7 @@ class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
     CRM_Core_BAO_CustomField::getTableColumnGroup($this->IndiStudentField['id'], TRUE);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = ['civicrm_contact', 'civicrm_cache'];
     $this->quickCleanup($tablesToTruncate, TRUE);
   }
index 96ce2e42c0c68217b7f505884d250942d804bc93..6e54accb5051fa1b61990aed4735feb8a6f57efa 100644 (file)
@@ -64,7 +64,7 @@ class api_v3_CustomValueTest extends CiviUnitTestCase {
 
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_email',
       'civicrm_custom_field',
index abebea1d530d5ac66da5de142d64246eb84cf910..b52d3a693e740caa6fd7f41fc417dc15664de6e9 100644 (file)
@@ -81,7 +81,7 @@ class api_v3_EventTest extends CiviUnitTestCase {
     }
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     foreach ($this->eventIds as $eventId) {
       $this->eventDelete($eventId);
     }
index bcfc8f9f4ba5c95420ca892eab09b914a6714fdc..18b371ff294d8fb5b03ae2e34fb99988cc712f44 100644 (file)
@@ -27,7 +27,7 @@ class api_v3_ExtensionTest extends CiviUnitTestCase {
     Civi::settings()->set('ext_repo_url', $url);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     Civi::settings()->revert('ext_repo_url');
   }
 
index e78f9fe5cbf811725789794b59ccb1deeca89f25..8ed31ec8cfe20cc03bfbacec17b277ce96a501bb 100644 (file)
@@ -91,7 +91,7 @@ class api_v3_FinancialTypeACLTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_uf_match']);
     $this->disableFinancialACLs();
index d0c3707606408b68b6ccfd35bc7a860d0cc3d4ba..5415759a4816fc3a05f2c7ec4ae6c4c82781b9b3 100644 (file)
@@ -44,7 +44,7 @@ class api_v3_GrantTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     foreach ($this->ids as $entity => $entities) {
       foreach ($entities as $id) {
         $this->callAPISuccess($entity, 'delete', ['id' => $id]);
index b3a95146483c54db5ec1c9ed4812b27c197525cb..08c5f9fbbd56fa799f0f4458fab9e9946e96102d 100644 (file)
@@ -55,7 +55,7 @@ class api_v3_GroupNestingTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  protected function tearDown() {
+  protected function tearDown(): void {
     $this->quickCleanup(
       [
         'civicrm_group',
index f6edd05bc3f646144d0a13e107f6f2fd5965c6b2..4a9f8aa211930fc1c94c310ab0c9e2a49fae854e 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_GroupTest extends CiviUnitTestCase {
   /**
    * Set up for tests.
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->_groupID = $this->groupCreate();
     $config = CRM_Core_Config::singleton();
@@ -34,7 +34,7 @@ class api_v3_GroupTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     CRM_Utils_Hook::singleton()->reset();
     $config = CRM_Core_Config::singleton();
     unset($config->userPermissionClass->permissions);
index 163ef35b212b2ce6ecc6dbe61bffe4a0b37c5eb2..5fb1a374793b87c3f51c9a38aa41f7be1f6fd2ae 100644 (file)
@@ -80,7 +80,7 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
 
   /**
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->_mut->stop();
     CRM_Utils_Hook::singleton()->reset();
     $this->cleanupMailingTest();
index e0eaccbd5415eaeff6b2f4d55ea377422e35cb12..1d172816c10d1de06f301f7c4c0790b0baaebc56 100644 (file)
@@ -95,7 +95,7 @@ class api_v3_JobProcessMembershipTest extends CiviUnitTestCase {
     $this->_tomorrow = date('Y-m-d', time() + 60 * 60 * 24);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
 
     // For each case, the `old` membershipt type must start as
index 33062c5848abb4fac12b5b0e656faed6d07b2f03..2a971eb63484d30024a446c5c10bf9d1e26486a5 100644 (file)
@@ -111,7 +111,7 @@ class api_v3_JobTestCustomDataTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanup(['civicrm_contact'], TRUE);
     parent::tearDown();
   }
index e2f6cbd5e262cde0d1e728286d6b8f057f8b0f99..0e6867edbbeea286c2e7da9974b8849043699109 100644 (file)
@@ -30,7 +30,7 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
   /**
    * Clean up log tables.
    */
-  protected function tearDown() {
+  protected function tearDown(): void {
     $this->quickCleanup(['civicrm_email', 'civicrm_address']);
     parent::tearDown();
     $this->callAPISuccess('Setting', 'create', ['logging' => FALSE]);
index 0000fcf4fdb440a54e9a62d3d2ba5fa2c667f85f..5d7183346792465771478524997f82cd4f12b34d 100644 (file)
@@ -36,7 +36,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
     $this->_contact = $this->callAPISuccess("contact", "create", $params);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->callAPISuccess("contact", "delete", ['id' => $this->_contact['id']]);
     parent::tearDown();
   }
index bbf99310abdc47c03ade561fde28fe91232f22f6..163747c60e56a0acd8999c84d6336e8d594af765 100644 (file)
@@ -70,7 +70,7 @@ class api_v3_MailingTest extends CiviUnitTestCase {
     ]);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     // DGW
     CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0;
     parent::tearDown();
index fbdf71a43e1e1d5a6fc33b62f6a9ec5041a3aa39..f04553c5730ce1cd2171d53cfdc4c5f9ef941b79 100644 (file)
@@ -36,7 +36,7 @@ class api_v3_MembershipStatusTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->membershipStatusDelete($this->_membershipStatusID);
     $this->membershipTypeDelete(['id' => $this->_membershipTypeID]);
     $this->contactDelete($this->_contactID);
index 4550d1eff110acde3b783d294b3e3382a55eb61f..ac6622bf5ba37ffd159561c2a06a8fe7202d68c3 100644 (file)
@@ -76,7 +76,7 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_uf_match'], TRUE);
     $this->contactDelete($this->_contactID);
index 34e10d86bc7d79c392be1f9f79e91b8f436e4dd6..a1f77690cd2d76e91819fe54875dc1a5498ae900 100644 (file)
@@ -36,7 +36,7 @@ class api_v3_MessageTemplateTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     parent::tearDown();
     unset(CRM_Core_Config::singleton()->userPermissionClass->permissions);
   }
index 7c23093bd6944bcf3251bf29713fa4da1be1d144..5690cc86620f14aff9cf34199c477a4a391fc9bd 100644 (file)
@@ -29,7 +29,7 @@ class api_v3_MultilingualTest extends CiviUnitTestCase {
     $this->useTransaction(TRUE);
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     CRM_Core_I18n_Schema::makeSinglelingual('en_US');
     parent::tearDown();
   }
index 55856dd122c0c24c493ecc3fa69caec8e53b9258..d51e1c732e7226d1340be415b3a4f4d180a1bbc2 100644 (file)
@@ -39,7 +39,7 @@ class api_v3_OrderTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_uf_match']);
   }
index 6c485116b4677b7ab35be7338aca2bf1823955c3..8d09b7603b1d2d088a2aca2326e5aaf14ba5ce5f 100644 (file)
@@ -68,7 +68,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->eventDelete($this->_eventID);
     $tablesToTruncate = [
       'civicrm_custom_group',
index cd5760a5ac7314c3a7c9c5b4cb01ad5c976191f4..a97e61ce4c49649d2926e1862cfd246c52b31346 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_PaymentProcessorTypeTest extends CiviUnitTestCase {
     $this->useTransaction(TRUE);
   }
 
-  //  function tearDown() {
+  //  function tearDown(): void {
   //
   //    $tablesToTruncate = array(
   //      'civicrm_payment_processor_type',
index ad9f744763dcdda2736c4a29ad554e20b17cc499..659e33d82afe0fca8dade8fcf144eca3b20dc381 100644 (file)
@@ -40,7 +40,7 @@ class api_v3_PaymentTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_uf_match']);
     unset(CRM_Core_Config::singleton()->userPermissionClass->permissions);
index f3a374335b30a5c62c89e100b4ca7409cd148ab2..1bd7016e0b255c43eb227ca691d8812d886cccbb 100644 (file)
@@ -39,7 +39,7 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase {
    * Clean up after function.
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_contribution',
       'civicrm_contact',
index f624c6ba09d18af02646ee17ce78ede7bb5c061b..426c2987eb9efd3f9b7c6fd8b06ae17c28220f70 100644 (file)
@@ -52,7 +52,7 @@ class api_v3_PledgeTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     $this->contactDelete($this->_individualId);
   }
 
index c4c6ec7f445444cb73966ba7053cbc7cba42cbfd..bfde926bc4bf9cb6a2cd1fd036c79f3fa884a1a6 100644 (file)
@@ -56,7 +56,7 @@ class api_v3_PriceFieldTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_contact',
       'civicrm_contribution',
index dca3b97ab2885c6ffb39bafb7817d1cfb04d6669..4f11b37639cc963b0e2d5f4d7169012b772da279 100644 (file)
@@ -96,7 +96,7 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $tablesToTruncate = [
       'civicrm_contact',
       'civicrm_contribution',
index 094bfcb7addd84b216bb7bf4c6f9bc39aa719f4a..0d5d3a4e034cc7d53bebd4fd448cfc0b9f321cc8 100644 (file)
@@ -43,7 +43,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
 
     $this->quickCleanup([
       'civicrm_contact',
index 94b2899a04e4144006aa2c56014bf01e7f48d56c..64a3c981347ab93374bc7dae91be2ba8cba643d8 100644 (file)
@@ -79,7 +79,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->contactDelete($this->_cId_a);
     $this->contactDelete($this->_cId_a_2);
     $this->contactDelete($this->_cId_b);
index b9b4f6706ad95bd626b6922eb8e3238eab56bee8..88334e050ff9bd8bd15c2a9c91ea33c23ef007f8 100644 (file)
@@ -27,7 +27,7 @@ class api_v3_RelationshipTypeTest extends CiviUnitTestCase {
     $this->_cId_b = $this->organizationCreate();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
 
     $tablesToTruncate = [
       'civicrm_contact',
index 5335a8eb53bc84b612dcdaf982a9cbd4292ae5da..2076fd3ee1a1dd010588da4f965f275f132d5cbb 100644 (file)
@@ -29,7 +29,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     $this->quickCleanup(['civicrm_group', 'civicrm_saved_search', 'civicrm_group_contact', 'civicrm_group_contact_cache', 'civicrm_group'], TRUE);
     parent::tearDown();
index f75f46207a78bd81c3a88579b72a066a553a3420..427b2f1cee14320b0fb6bd3296f6a789c28fc6de 100644 (file)
@@ -50,7 +50,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
     $this->hookClass = CRM_Utils_Hook::singleton();
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     CRM_Utils_Hook::singleton()->reset();
     parent::tearDown();
     $this->callAPISuccess('system', 'flush', []);
index afffa613bf9a46bcf9b5688ca5e42ad86548cbfb..a1d2e656fef8fc6538241b899e04f4a3fc2f5b5b 100644 (file)
@@ -132,7 +132,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     $this->deletableTestObjects = [];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     foreach ($this->deletableTestObjects as $entityName => $entities) {
       foreach ($entities as $entityID) {
         CRM_Core_DAO::deleteTestObjects($entityName, ['id' => $entityID]);
index 2e040467deeb87f719d5eb03ca51450948369a72..0010e84542d4c778de655dd67b4e6cd5754148a1 100644 (file)
@@ -128,7 +128,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
   /**
    * Cleanup after function.
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanUpFinancialEntities();
     parent::tearDown();
   }
index 15ef6ec1bec5ba3a7e6c2e212108052fe6efd253..3e667cce4fbc2c82f7e183e9874aa1d87df53dbb 100644 (file)
@@ -73,7 +73,7 @@ class api_v3_UFFieldTest extends CiviUnitTestCase {
    *
    * @throws \Exception
    */
-  public function tearDown() {
+  public function tearDown(): void {
     $this->quickCleanup(
       [
         'civicrm_group',
index be06e412fe584f8d837df1bd0c0e63cbdfe8a5e0..f6a52f25f97d3d836e48d0b226d78c3e1f93f895 100644 (file)
@@ -68,7 +68,7 @@ class api_v3_UFGroupTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     //  Truncate the tables
     $this->quickCleanup(
       [
index 71f04a1bd1b6ba4a40eba1719ed067bf4c1adafb..a82392a76100fd1ad5015ba5b368badee2d154d1 100644 (file)
@@ -40,7 +40,7 @@ class api_v3_UFJoinTest extends CiviUnitTestCase {
     $this->loadXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml');
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     //  Truncate the tables
     $this->quickCleanup(
       [
index 2e1d50901ea1d322eac93b2bb47158b605985287..8bb74325f88a90b3af9e65fd97e022b88c5c1528 100644 (file)
@@ -48,7 +48,7 @@ class api_v3_UFMatchTest extends CiviUnitTestCase {
     ];
   }
 
-  public function tearDown() {
+  public function tearDown(): void {
     //  Truncate the tables
     $this->quickCleanup(
       [