Add void to some setup() functions
authoreileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 20:27:46 +0000 (09:27 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 20:28:00 +0000 (09:28 +1300)
53 files changed:
tests/phpunit/api/v3/ACLCachingTest.php
tests/phpunit/api/v3/ACLPermissionTest.php
tests/phpunit/api/v3/ActionScheduleTest.php
tests/phpunit/api/v3/ActivityCaseTest.php
tests/phpunit/api/v3/ActivityContactTest.php
tests/phpunit/api/v3/ActivityTypeTest.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/AttachmentTest.php
tests/phpunit/api/v3/BatchTest.php
tests/phpunit/api/v3/CRM11793Test.php
tests/phpunit/api/v3/CampaignTest.php
tests/phpunit/api/v3/CaseContactTest.php
tests/phpunit/api/v3/CaseTest.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/ConstantTest.php
tests/phpunit/api/v3/ContactTypeTest.php
tests/phpunit/api/v3/ContributionPageTest.php
tests/phpunit/api/v3/ContributionRecurTest.php
tests/phpunit/api/v3/ContributionSoftTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/CountryTest.php
tests/phpunit/api/v3/CustomApiTest.php
tests/phpunit/api/v3/CustomGroupTest.php
tests/phpunit/api/v3/CustomSearchTest.php
tests/phpunit/api/v3/CustomValueContactTypeTest.php
tests/phpunit/api/v3/CustomValueTest.php
tests/phpunit/api/v3/DashboardContactTest.php
tests/phpunit/api/v3/DashboardTest.php
tests/phpunit/api/v3/DomainTest.php
tests/phpunit/api/v3/EmailTest.php
tests/phpunit/api/v3/EntityBatchTest.php
tests/phpunit/api/v3/EntityJoinTest.php
tests/phpunit/api/v3/EntityTagACLTest.php
tests/phpunit/api/v3/EntityTagTest.php
tests/phpunit/api/v3/EventTest.php
tests/phpunit/api/v3/ExceptionTest.php
tests/phpunit/api/v3/ExtensionTest.php
tests/phpunit/api/v3/FinancialTypeACLTest.php
tests/phpunit/api/v3/GrantTest.php
tests/phpunit/api/v3/GroupContactTest.php
tests/phpunit/api/v3/GroupNestingTest.php
tests/phpunit/api/v3/GroupOrganizationTest.php
tests/phpunit/api/v3/ImTest.php
tests/phpunit/api/v3/JobProcessMailingTest.php
tests/phpunit/api/v3/JobProcessMembershipTest.php
tests/phpunit/api/v3/JobTestCustomDataTest.php
tests/phpunit/api/v3/LineItemTest.php
tests/phpunit/api/v3/LocBlockTest.php
tests/phpunit/api/v3/LoggingTest.php
tests/phpunit/api/v3/MailSettingsTest.php
tests/phpunit/api/v3/MailingABTest.php
tests/phpunit/api/v3/MailingContactTest.php
tests/phpunit/api/v3/MailingGroupTest.php

index 5c0bc7f5d3d119197ae1ed93fe548e1fd1fa209e..d5e1154040cae95e06444bc56a6bced503b21d1c 100644 (file)
@@ -21,7 +21,7 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
   }
 
index b31278c940c50780a461315d7021b14bb74d330f..61887fcabc7d59c5273f47fae6523d933560d93f 100644 (file)
@@ -28,7 +28,7 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
   public $DBResetRequired = FALSE;
   protected $_entity;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     CRM_Core_DAO::createTestObject('CRM_Pledge_BAO_Pledge', [], 1, 0);
     $this->callAPISuccess('Phone', 'create', ['id' => $this->individualCreate(['email' => '']), 'phone' => '911', 'location_type_id' => 'Home']);
index 8c3a4e1192f1ce483d233cb7b8a1054439cbc77d..28abe07070bd58959eaea4062d6404c41c150d22 100644 (file)
@@ -39,7 +39,7 @@ class api_v3_ActionScheduleTest extends CiviUnitTestCase {
   /**
    * Test setup for every test.
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
   }
index 4bba2e4a811f0dd91270c7d36f4776898dac24b6..81a9b4b42d42c3ab0998ddfafc860069533af026 100644 (file)
@@ -29,7 +29,7 @@ class api_v3_ActivityCaseTest extends CiviCaseTestCase {
    * 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 {
     $this->_entity = 'case';
 
     parent::setUp();
index 73d690f32f2653fd8617287680afb3385591f66f..4f721843c4fd39e6e365891ab5d6b31a67c1a7f8 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_ActivityContactTest extends CiviUnitTestCase {
   protected $_activityID;
   protected $_params;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 9fbf0bba9c92e1df7784d7cc24a01059d54cc54a..0af2b1ab3cc60370e5cb95306dbe0ff735d23abb 100644 (file)
@@ -34,7 +34,7 @@
 class api_v3_ActivityTypeTest extends CiviUnitTestCase {
   protected $_apiversion;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->_apiversion = 3;
     CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name');
     parent::setUp();
index 83646351d8c1c8164a363d290fff60aea7391a88..69817d4bfd12c23ec1d8027710ec62c84f7cebf7 100644 (file)
@@ -27,7 +27,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
 
   protected $_entity;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->_entity = 'Address';
     parent::setUp();
 
index b13295dd25eb9d0a87346fe8159f6e90da2c205c..151b4de8f45933b09dd1788e72cfe47578b0fa05 100644 (file)
@@ -45,7 +45,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
     return self::$filePrefix;
   }
 
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 1fe43765849f85378c181ec1b5ce4795270f7838..457abcd2d6de22abafccd850d9f1aa1cb957608e 100644 (file)
@@ -25,7 +25,7 @@ class api_v3_BatchTest extends CiviUnitTestCase {
    *
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
   }
index f5bbbdda47f643a56eaaf22fd1b79a7946d06af2..e1a5a5b6ebd981fa20b81b0515df84b6c7817da7 100644 (file)
@@ -18,7 +18,7 @@ class api_v3_CRM11793Test 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 {
     parent::setUp();
 
     $this->individualCreate();
index e7be69961514be48292e61ad0fe9d0fa10019419..7f324275068f106ffdd8691e18060d01fe1c69c5 100644 (file)
@@ -19,7 +19,7 @@ class api_v3_CampaignTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->params = [
       'title' => "campaign title",
       'description' => "Call people, ask for money",
index b65cf541e44d71b43f59c4e50363b656fbd69fb3..802bcdb30ab66a3bf8051a6b56ab67795cb5580f 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_CaseContactTest extends CiviCaseTestCase {
    * 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 {
     $this->_entity = 'case';
 
     parent::setUp();
index edeb4739d52be5413ec75ba4e37233d04471c5b0..a172c07bedab1a93eaad7bd56f5574ddc3021627 100644 (file)
@@ -58,7 +58,7 @@ class api_v3_CaseTest extends CiviCaseTestCase {
    * 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 {
     $this->_entity = 'case';
 
     parent::setUp();
index 5dfac710564c128d93fb2200b4924379467e5a28..5421b1f47ead01db4125b6325f991e5137b45b7b 100644 (file)
@@ -15,7 +15,7 @@
  */
 class api_v3_CaseTypeTest extends CiviCaseTestCase {
 
-  public function setUp() {
+  public function setUp(): void {
     $this->quickCleanup(['civicrm_case_type']);
     parent::setUp();
 
index cc000f719bfcfc1b0040c2946cf7219b34a20e5b..09aea87e611083edbea9c83dcb0b87d654cc66b5 100644 (file)
@@ -44,7 +44,7 @@ class api_v3_ConstantTest 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();
   }
index fa69185aca515c55f33eb358b856e8a375a3725e..fe34b4d73116a68800a2b8f465716e947c096069 100644 (file)
@@ -16,7 +16,7 @@
 class api_v3_ContactTypeTest extends CiviUnitTestCase {
   protected $_apiversion;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
     $params = [
index f4b4562ef1b5413a423a11e5454f8fd318662dd9..e7f14a6d81b4f5907c49763e57fd83b7dd48d01d 100644 (file)
@@ -54,7 +54,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->contactIds[] = $this->individualCreate();
     $this->params = [
index 551f43ec11ac32e8f72fe76c19d97d2e0892f5ac..2f7f6b5bf765d9bd11a14fc414f0d45a7cd6df33 100644 (file)
@@ -25,7 +25,7 @@ class api_v3_ContributionRecurTest extends CiviUnitTestCase {
   /**
    * @throws \CRM_Core_Exception
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction();
     $this->ids['contact'][0] = $this->individualCreate();
index 6880605e793f40d904485f777312a48fdb61d109..a7fad26a9829faa866fae1d874686ff226ab63d8 100644 (file)
@@ -45,7 +45,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
   public $debug = 0;
   protected $_params;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 3a01ca7820a21c920d8b033a8363e6cdc4a129c1..082b5d0f57352e501ed3c94e3e7c6110ac39510b 100644 (file)
@@ -62,7 +62,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
 
     $this->_apiversion = 3;
index c0d82cfed14b1022f46616d111decce0382eff68..982c49ea20cc3c6da9e8fb02dd12e62f14a920b1 100644 (file)
@@ -19,7 +19,7 @@
 class api_v3_CountryTest extends CiviUnitTestCase {
   protected $_params;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->_params = [
index 6a2849b7663c7667915b1a83385d87dabf6716e7..1ff50958619438cd16e80be38a2d99021e45c667 100644 (file)
@@ -19,7 +19,7 @@ class api_v3_CustomApiTest extends CiviUnitTestCase {
 
   protected $_apiversion = 3;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->installApi();
   }
index 03cb6a85d05de32fcadf0ef7f7e119dbebbccec2..e689a66bf40132566a0c3e1d95cfcc9c2ebc4132 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_CustomGroupTest extends CiviUnitTestCase {
 
   public $DBResetRequired = TRUE;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->_entity = 'CustomGroup';
     $this->_params = [
       'title' => 'Test_Group_1',
index 4ac288050b1bf3839b3d21d9a1565d3d92535edb..8c73a3c1d12b89e8a2303f67dda4cd18bda7fa55 100644 (file)
@@ -7,7 +7,7 @@
 class api_v3_CustomSearchTest extends CiviUnitTestCase {
   protected $_apiversion;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->_apiversion = 3;
     parent::setUp();
     $this->useTransaction(TRUE);
index 2f012d95852473dfdfed1692248e9de8499adebc..238104895f6e46fed0db9dd52a51d1311923186c 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
   protected $CustomGroupIndividual;
   protected $individualStudent;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     //  Create Group For Individual  Contact Type
     $groupIndividual = [
index 6e54accb5051fa1b61990aed4735feb8a6f57efa..78511ade3bb9790b373b8596e0edeff76abee28c 100644 (file)
@@ -21,10 +21,6 @@ class api_v3_CustomValueTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
-    parent::setUp();
-  }
-
   public function _populateOptionAndCustomGroup($type = NULL) {
     $dataValues = [
       'integer' => [1, 2, 3],
index e5b0728d16036943b3b59dd800dabdc01daa08a8..9c86fd198405c57ff98b142b9ed86a18c67f728a 100644 (file)
@@ -38,7 +38,7 @@ class api_v3_DashboardContactTest 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();
     $this->useTransaction(TRUE);
index 3a21ceff8d6a3c82ed58a9bf20e96d637dd411ca..d9e1f30a19e9429e0278806d3d403f9bfca4d3a6 100644 (file)
@@ -38,7 +38,7 @@ class api_v3_DashboardTest 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();
     $this->useTransaction(TRUE);
index 2a0d2caea7dced643c2dd5281b5d54c489a23646..bb9eb817c80b1071aea6e5d8296f59a92e7dd12b 100644 (file)
@@ -32,7 +32,7 @@ class api_v3_DomainTest extends CiviUnitTestCase {
    *
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 1de8dbf9fdc2b4c003547cd32fa1664853c62068..549e6ba1fcd98db37ef45dc1d7fd45e9c99cdd08 100644 (file)
@@ -21,7 +21,7 @@ class api_v3_EmailTest extends CiviUnitTestCase {
   protected $_entity;
   protected $_params;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->_entity = 'Email';
     parent::setUp();
     $this->useTransaction(TRUE);
index 9446092ee48172911014483beb9e50546fcdbad6..0ed0b96d631038bd6159f598826364a745e5d202 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_EntityBatchTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index add0099aaa9ec696c987cd003f898c57f64e4daa..fbcbca262f9e21c2faa04bb2fca815d36d9b7a3b 100644 (file)
@@ -17,7 +17,7 @@
  */
 class api_v3_EntityJoinTest extends CiviUnitTestCase {
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
   }
index 7c88088b2801bb5973bebd9f37efb6156470d67f..2227f3b749d7670f55e923b75b7eaf79d6a7f28f 100644 (file)
@@ -45,7 +45,7 @@ class api_v3_EntityTagACLTest extends CiviUnitTestCase {
   /**
    * Set up permissions for test.
    */
-  public function setUp() {
+  public function setUp(): void {
     $this->useTransaction(TRUE);
     parent::setUp();
     $individualID = $this->individualCreate();
index 887b0834958589e41c6dd1c75740c584d427c40e..b99ecdc7d9c637056059780903e3619b7e146323 100644 (file)
@@ -45,7 +45,7 @@ class api_v3_EntityTagTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index b52d3a693e740caa6fd7f41fc417dc15664de6e9..5684ebeb9abea8c5c574f17bdd31f57b873c7f7d 100644 (file)
@@ -18,7 +18,7 @@ class api_v3_EventTest extends CiviUnitTestCase {
   protected $_apiversion;
   protected $_entity;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->_apiversion = 3;
     $this->_entity = 'event';
index bf0fb4361ec4bfd1e31bd1870ecb1199765caf7c..1a5e38baf08677135139f7c3a6d5c97925ed2ec8 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_ExceptionTest extends CiviUnitTestCase {
    *
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     $this->useTransaction(TRUE);
     parent::setUp();
   }
index 18b371ff294d8fb5b03ae2e34fb99988cc712f44..b62d9d474ecace410bd597e3f9104a2af46f2508 100644 (file)
@@ -22,7 +22,7 @@
  */
 class api_v3_ExtensionTest extends CiviUnitTestCase {
 
-  public function setUp() {
+  public function setUp(): void {
     $url = 'file://' . dirname(dirname(dirname(dirname(__FILE__)))) . '/mock/extension_browser_results';
     Civi::settings()->set('ext_repo_url', $url);
   }
index 8ed31ec8cfe20cc03bfbacec17b277ce96a501bb..38b6eb83d78b2654be2e569dd2be46188619849a 100644 (file)
@@ -46,7 +46,7 @@ class api_v3_FinancialTypeACLTest extends CiviUnitTestCase {
   /**
    * Setup function.
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
 
     $this->_apiversion = 3;
index 5415759a4816fc3a05f2c7ec4ae6c4c82781b9b3..70d9a2fede5d838b4911f895e694360e9cfd46f0 100644 (file)
@@ -24,7 +24,7 @@ class api_v3_GrantTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->ids['contact'][0] = $this->individualCreate();
     $this->params = [
index aa10784540ceda08dd0366a564461b4abe18837f..44affa37566c7c01ff240d527ad765aa538a5ccc 100644 (file)
@@ -34,7 +34,7 @@ class api_v3_GroupContactTest extends CiviUnitTestCase {
    *
    * @todo set up calls function that doesn't work @ the moment
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 08c5f9fbbd56fa799f0f4458fab9e9946e96102d..fd34ce92d182a6ebe14192cc777f9226d61dbd34 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_GroupNestingTest extends CiviUnitTestCase {
    *
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
 
     $this->ids['Group'] = [];
index 4ed4ed9f0ca043b6280825634bdc941ac67eec3f..aed10a7ea4eb4245c6332e1571f2abeace91ba9f 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_GroupOrganizationTest 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 {
     $this->_apiversion = 3;
     parent::setUp();
     $this->useTransaction(TRUE);
index 1ddcefe008dcfa7dd8257ad6b3b1186293f0ab14..600284120138e7887693a7ed9a7a4405a8113af2 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_ImTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
 
index 5fb1a374793b87c3f51c9a38aa41f7be1f6fd2ae..0c75c11767eb67093811947ad0d10e3d56a35460 100644 (file)
@@ -40,7 +40,7 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
    */
   private $_mut;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     // DGW
     CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0;
index 1d172816c10d1de06f301f7c4c0790b0baaebc56..e35484282a7c678970a499a4ad5dad7bec1d184a 100644 (file)
@@ -60,7 +60,7 @@ class api_v3_JobProcessMembershipTest extends CiviUnitTestCase {
    */
   public $_tomorrow;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->loadReferenceDates();
     $this->loadMembershipStatuses();
index 2a971eb63484d30024a446c5c10bf9d1e26486a5..fa972463f2ab7248941aaf2ded4c743c0163ace5 100644 (file)
@@ -68,7 +68,7 @@ class api_v3_JobTestCustomDataTest extends CiviUnitTestCase {
    */
   public $customGroupID = NULL;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $customGroup = $this->customGroupCreate();
     $this->customGroupID = $customGroup['id'];
index 29b83485a70a85ae1d16b7d8050a890e65c5be6c..7ff061a4392f90a7d236e31502defc4da4063912 100644 (file)
@@ -24,7 +24,7 @@ class api_v3_LineItemTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction();
     $contributionParams = [
index 26d532dd60b3656033b56484b6ec250b48f2871e..c7751fed7a2946551665eaedd4467cd847e5afb7 100644 (file)
@@ -23,7 +23,7 @@ class api_v3_LocBlockTest extends CiviUnitTestCase {
   /**
    * Set up.
    */
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
   }
index 0e6867edbbeea286c2e7da9974b8849043699109..a25dbb863f040eaf4e3875bacab2b378fc6dd6d1 100644 (file)
@@ -22,7 +22,7 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
    *
    * This method is called before a test is executed.
    */
-  protected function setUp() {
+  protected function setUp(): void {
     $this->ensureTempColIsCleanedUp();
     parent::setUp();
   }
index c9d62b7a9c742b06edfa0c1dcd2d8282dcbe9099..534e24ce6bddcb408bdf003cd196ba9a0fcb8d0c 100644 (file)
@@ -24,7 +24,7 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase {
 
   public $DBResetRequired = FALSE;
 
-  public function setUp() {
+  public function setUp(): void {
     $this->params = [
       'domain_id' => 1,
       'name' => "my mail setting",
index 39fc24579313a99447a754e143e8df62fd999b4d..d31d66fd5f018a261eff962774cd5fb173de6dcb 100644 (file)
@@ -38,7 +38,7 @@ class api_v3_MailingABTest extends CiviUnitTestCase {
   protected $_entity = 'MailingAB';
   protected $_groupID;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->createLoggedInUser();
index 5d7183346792465771478524997f82cd4f12b34d..9fe67eb990674aa73424e52836211a3d54244a26 100644 (file)
@@ -26,7 +26,7 @@
 class api_v3_MailingContactTest extends CiviUnitTestCase {
   protected $_entity = 'mailing';
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $params = [
       'first_name' => 'abc1',
index e1b09ea9234a3221a45db6df2f6b67e2e0249512..27e78ffc2178e2483f08a712cf0e1b28b6220442 100644 (file)
@@ -20,7 +20,7 @@ class api_v3_MailingGroupTest extends CiviUnitTestCase {
   protected $_email;
   protected $_apiversion;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->_apiversion = 3;