Skip to content

Commit

Permalink
Merge pull request #27469 from eileenmcnaughton/no_event_cart
Browse files Browse the repository at this point in the history
Stop enabling event_cart on new installs
  • Loading branch information
eileenmcnaughton authored Sep 18, 2023
2 parents 7cb959e + 1e9c709 commit 606c43a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sql/civicrm_data/civicrm_extension.sqldata.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
'full_name' => 'greenwich',
'name' => 'Theme: Greenwich',
],
[
'full_name' => 'eventcart',
'name' => 'Event cart',
],
[
'full_name' => 'financialacls',
'name' => 'Financial ACLs',
Expand Down
7 changes: 7 additions & 0 deletions tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 606c43a

Please sign in to comment.