From 38cd816aa2166eb64616e80b46fc01083a21bca9 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 25 Mar 2021 15:25:11 +1300 Subject: [PATCH] Remove some empty tearDown functions --- .../CRM/Activity/BAO/ActivityAssignmentTest.php | 15 --------------- .../CRM/Activity/BAO/ActivityTargetTest.php | 16 ---------------- .../phpunit/CRM/Contact/BAO/GroupContactTest.php | 16 ---------------- .../CRM/Contact/Form/Search/Custom/GroupTest.php | 7 ------- .../Contact/Form/Search/Custom/PriceSetTest.php | 7 ------- .../Contact/Form/Search/Custom/SampleTest.php | 7 ------- .../CRM/Contribute/BAO/ContributionPageTest.php | 5 +---- .../phpunit/CRM/Core/BAO/RecurringEntityTest.php | 15 --------------- 8 files changed, 1 insertion(+), 87 deletions(-) diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php index 1ea6c11d85..66607cbd51 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php @@ -17,21 +17,6 @@ */ 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. */ diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php index 72cdc1b576..fb504ac9a5 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php @@ -17,22 +17,6 @@ */ 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); diff --git a/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php b/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php index c9b4ec62ab..8047ad5012 100644 --- a/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php +++ b/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php @@ -17,22 +17,6 @@ */ 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( ). */ diff --git a/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php b/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php index e9b66a8e81..8115a52e06 100644 --- a/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php +++ b/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php @@ -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 diff --git a/tests/phpunit/CRM/Contact/Form/Search/Custom/PriceSetTest.php b/tests/phpunit/CRM/Contact/Form/Search/Custom/PriceSetTest.php index 4744b9d713..95b8b0313b 100644 --- a/tests/phpunit/CRM/Contact/Form/Search/Custom/PriceSetTest.php +++ b/tests/phpunit/CRM/Contact/Form/Search/Custom/PriceSetTest.php @@ -56,13 +56,6 @@ */ 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', [ diff --git a/tests/phpunit/CRM/Contact/Form/Search/Custom/SampleTest.php b/tests/phpunit/CRM/Contact/Form/Search/Custom/SampleTest.php index db659b36c7..4398172b62 100644 --- a/tests/phpunit/CRM/Contact/Form/Search/Custom/SampleTest.php +++ b/tests/phpunit/CRM/Contact/Form/Search/Custom/SampleTest.php @@ -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 diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php index e42d4e893a..867f9cf48c 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php @@ -15,14 +15,11 @@ */ 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) */ diff --git a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php index a981de6e7f..6c42982d6b 100644 --- a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php +++ b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php @@ -15,21 +15,6 @@ */ 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. */ -- 2.25.1