Remove some empty tearDown functions
authoreileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 02:25:11 +0000 (15:25 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 25 Mar 2021 02:25:31 +0000 (15:25 +1300)
tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php
tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php
tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php
tests/phpunit/CRM/Contact/Form/Search/Custom/PriceSetTest.php
tests/phpunit/CRM/Contact/Form/Search/Custom/SampleTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php
tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php

index 1ea6c11d85258d17cb18b6ca8ff52978a1ac3d19..66607cbd512a3defa9bb28a290a87f5a4520de37 100644 (file)
  */
 class CRM_Activity_BAO_ActivityAssignmentTest extends CiviUnitTestCase {
 
-  /**
-   * Sets up the fixture, for example, opens a network connection.
-   * This method is called before a test is executed.
-   */
-  protected function setUp() {
-    parent::setUp();
-  }
-
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   * This method is called after a test is executed.
-   */
-  protected function tearDown() {
-  }
-
   /**
    *  Pass zero as an id and make sure no Assignees are retrieved.
    */
index 72cdc1b576d3812a5acf189eb6a4217e949c2bb6..fb504ac9a5457fa15713ef1128d80f34b8bdd652 100644 (file)
  */
 class CRM_Activity_BAO_ActivityTargetTest extends CiviUnitTestCase {
 
-  /**
-   * Sets up the fixture, for example, opens a network connection.
-   * This method is called before a test is executed.
-   */
-  protected function setUp() {
-    parent::setUp();
-  }
-
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   *
-   * This method is called after a test is executed.
-   */
-  protected function tearDown() {
-  }
-
   public function testRetrieveTargetIdsByActivityIdZeroID() {
     $this->activityCreate();
     $target = CRM_Activity_BAO_ActivityTarget::retrieveTargetIdsByActivityId(0);
index c9b4ec62abff349dbc931909054526dc5ec8d9a2..8047ad50127015e6a094ff415184589f8783fb8c 100644 (file)
  */
 class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
 
-  /**
-   * Sets up the fixture, for example, opens a network connection.
-   * This method is called before a test is executed.
-   */
-  protected function setUp() {
-    parent::setUp();
-  }
-
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   *
-   * This method is called after a test is executed.
-   */
-  protected function tearDown() {
-  }
-
   /**
    * Test case for add( ).
    */
index e9b66a8e8107b337f05dc86b44b02d51577b5c2e..8115a52e06f465b538d5d88b9f720ff60e37bfe0 100644 (file)
@@ -73,13 +73,6 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase {
     return new CRM_Contact_Form_Search_Custom_GroupTestDataProvider();
   }
 
-  public function setUp() {
-    parent::setUp();
-  }
-
-  public function tearDown() {
-  }
-
   /**
    *  Test CRM_Contact_Form_Search_Custom_Group::count()
    * @dataProvider dataProvider
index 4744b9d713dc9826b979f872b1b7c7cf253880eb..95b8b0313b2f2a27e9cf36e0d71d8c28439cb42b 100644 (file)
  */
 class CRM_Contact_Form_Search_Custom_PriceSetTest extends CiviUnitTestCase {
 
-  public function setUp() {
-    parent::setUp();
-  }
-
-  public function tearDown() {
-  }
-
   public function testRunSearch() {
     $order = $this->callAPISuccess('Order', 'create', $this->getParticipantOrderParams());
     $this->callAPISuccess('Payment', 'create', [
index db659b36c726065d07325bb82c8be24356217358..4398172b62b15a48b50364a258e6b0678258499d 100644 (file)
@@ -51,13 +51,6 @@ class CRM_Contact_Form_Search_Custom_SampleTest extends CiviUnitTestCase {
     return new CRM_Contact_Form_Search_Custom_SampleTestDataProvider();
   }
 
-  public function setUp() {
-    parent::setUp();
-  }
-
-  public function tearDown() {
-  }
-
   /**
    *  Test CRM_Contact_Form_Search_Custom_Sample::count()
    * @dataProvider dataProvider
index e42d4e893a6a07333bab24a9fdb27dccb66ab3f7..867f9cf48c41ed558a598303c5e3d147a97988c7 100644 (file)
  */
 class CRM_Contribute_BAO_ContributionPageTest extends CiviUnitTestCase {
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->_financialTypeID = 1;
   }
 
-  public function tearDown() {
-  }
-
   /**
    * Create() method (create Contribution Page)
    */
index a981de6e7ff3860cb1ac3c1c293bb757d299a61f..6c42982d6bd7d1a1efd8d494fe35921fae27a0f9 100644 (file)
  */
 class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
 
-  /**
-   * Sets up the fixture, for example, opens a network connection.
-   * This method is called before a test is executed.
-   */
-  protected function setUp() {
-    parent::setUp();
-  }
-
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   * This method is called after a test is executed.
-   */
-  protected function tearDown() {
-  }
-
   /**
    * Testing Activity Generation through Entity Recursion.
    */