Fix petition test
authorcolemanw <coleman@civicrm.org>
Thu, 24 Aug 2023 16:09:33 +0000 (12:09 -0400)
committercolemanw <coleman@civicrm.org>
Thu, 24 Aug 2023 16:09:33 +0000 (12:09 -0400)
tests/phpunit/CRM/Campaign/BAO/PetitionTest.php

index eaf0a6a4f508c97a3c892677ff3fc9f869245041..a352679fa7a93f725596408ef37647e6d66a9b81 100644 (file)
@@ -19,6 +19,11 @@ use Civi\Api4\MessageTemplate;
  */
 class CRM_Campaign_BAO_PetitionTest extends CiviUnitTestCase {
 
+  public function setUp(): void {
+    CRM_Core_BAO_ConfigSetting::enableComponent('CiviCampaign');
+    parent::setUp();
+  }
+
   public function tearDown(): void {
     $this->revertTemplateToReservedTemplate();
     parent::tearDown();