From ff90c480e4475dd44daf27b5ce005e1f5ed17b27 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 4 Jul 2023 08:31:57 +1200 Subject: [PATCH] Remove some unused test functions If I'm wrong jenkins will tell us --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 60 --------------------- 1 file changed, 60 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 1d692efdd7..0477bad638 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1138,16 +1138,6 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase { return $this->callAPISuccess('Location', 'create', $params); } - /** - * Delete Locations of contact. - * - * @param array $params - * Parameters. - */ - public function locationDelete($params) { - $this->callAPISuccess('Location', 'delete', $params); - } - /** * Add a Location Type. * @@ -1322,30 +1312,6 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase { return $campaign['id']; } - /** - * Create Group for a contact. - * - * @param int $contactID - */ - public function contactGroupCreate(int $contactID): void { - $this->callAPISuccess('GroupContact', 'create', [ - 'contact_id.1' => $contactID, - 'group_id' => 1, - ]); - } - - /** - * Delete Group for a contact. - * - * @param int $contactID - */ - public function contactGroupDelete(int $contactID): void { - $this->callAPISuccess('GroupContact', 'Delete', [ - 'contact_id.1' => $contactID, - 'group_id' => 1, - ]); - } - /** * Create Activity. * @@ -1386,32 +1352,6 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase { return $result; } - /** - * Create an activity type. - * - * @param array $params - * Parameters. - * - * @return array - */ - public function activityTypeCreate(array $params): array { - return $this->callAPISuccess('ActivityType', 'create', $params); - } - - /** - * Delete activity type. - * - * @param int $activityTypeID - * Activity type ID. - * - * @return array - */ - public function activityTypeDelete(int $activityTypeID): array { - return $this->callAPISuccess('ActivityType', 'delete', [ - 'activity_type_id' => $activityTypeID, - ]); - } - /** * Create custom group. * -- 2.25.1