MailingTest - Update multilingual helper calls
authorTim Otten <totten@civicrm.org>
Wed, 17 Aug 2022 07:19:02 +0000 (00:19 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 17 Aug 2022 07:21:58 +0000 (00:21 -0700)
tests/phpunit/CRM/Mailing/BAO/MailingTest.php
tests/phpunit/CRM/Mailing/MailingSystemTest.php

index 30428e6c7065947c72b696a2babdb37b78e63ba8..53289cf06d8583481f3c778260dda84cc16f760e 100644 (file)
@@ -19,7 +19,7 @@ class CRM_Mailing_BAO_MailingTest extends CiviUnitTestCase {
   public function tearDown(): void {
     global $dbLocale;
     if ($dbLocale) {
-      CRM_Core_I18n_Schema::makeSinglelingual('en_US');
+      $this->disableMultilingual();
     }
     parent::tearDown();
   }
index 620117b5649d9dd4feaa5c2b9648aa28024a8252..083a14f28e3e4d3dd73dc22701852b85a5caaa7f 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Mailing_MailingSystemTest extends CRM_Mailing_BaseMailingSystemTest {
   public function tearDown(): void {
     global $dbLocale;
     if ($dbLocale) {
-      CRM_Core_I18n_Schema::makeSinglelingual('en_US');
+      $this->disableMultilingual();
     }
     parent::tearDown();
     $this->assertNotEmpty($this->counts['hook_alterMailParams']);