From d975974ecd7ba2c1edd7d7f2f1b78db199290223 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 3 May 2023 12:31:33 +1200 Subject: [PATCH] dev/core#4225 Add test for new regression --- tests/phpunit/api/v3/RelationshipTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/api/v3/RelationshipTest.php b/tests/phpunit/api/v3/RelationshipTest.php index d28887429b..cce47316b1 100644 --- a/tests/phpunit/api/v3/RelationshipTest.php +++ b/tests/phpunit/api/v3/RelationshipTest.php @@ -85,6 +85,8 @@ class api_v3_RelationshipTest extends CiviUnitTestCase { $this->quickCleanup(['civicrm_relationship', 'civicrm_membership'], TRUE); RelationshipType::delete(FALSE)->addWhere('id', '>', ($this->relationshipTypeID - 1))->execute(); parent::tearDown(); + CRM_Core_BAO_ConfigSetting::enableComponent('CiviMember'); + } /** @@ -103,6 +105,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase { * Test Current Employer is correctly set. */ public function testCurrentEmployerRelationship(): void { + CRM_Core_BAO_ConfigSetting::disableComponent('CiviMember'); $employerRelationshipID = $this->callAPISuccessGetValue('RelationshipType', [ 'return' => 'id', 'name_b_a' => 'Employer Of', -- 2.25.1