diff --git a/sql/civicrm_data/civicrm_extension.sqldata.php b/sql/civicrm_data/civicrm_extension.sqldata.php index c256fca34828..90b3c236686f 100644 --- a/sql/civicrm_data/civicrm_extension.sqldata.php +++ b/sql/civicrm_data/civicrm_extension.sqldata.php @@ -20,10 +20,6 @@ 'full_name' => 'greenwich', 'name' => 'Theme: Greenwich', ], - [ - 'full_name' => 'eventcart', - 'name' => 'Event cart', - ], [ 'full_name' => 'financialacls', 'name' => 'Financial ACLs', diff --git a/tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php b/tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php index d931340a39d6..9d60f4e5f8ce 100644 --- a/tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php +++ b/tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php @@ -33,12 +33,19 @@ class CRM_Financial_Form_PaymentFormsTest extends CiviUnitTestCase { use CRM_Core_Payment_AuthorizeNetTrait; + public function tearDown(): void { + $this->callAPISuccess('Extension', 'disable', ['keys' => ['eventcart']]); + $this->callAPISuccess('Extension', 'uninstall', ['keys' => ['eventcart']]); + parent::tearDown(); + } + /** * Generic test on event payment forms to make sure they submit without error with payment processing. * * @throws \CRM_Core_Exception */ public function testEventPaymentForms(): void { + $this->callAPISuccess('Extension', 'install', ['keys' => ['eventcart']]); $this->createAuthorizeNetProcessor(); $processors = [$this->ids['PaymentProcessor']['anet']]; $eventID = $this->eventCreatePaid([