From 363b84f876c8f7a9c917dab7a4d62229a731aa05 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 17 Aug 2022 00:08:07 -0700 Subject: [PATCH] MailingSystemTest - Update multilingual helper calls --- tests/phpunit/CRM/Mailing/MailingSystemTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Mailing/MailingSystemTest.php b/tests/phpunit/CRM/Mailing/MailingSystemTest.php index 9f89c0c221..620117b564 100644 --- a/tests/phpunit/CRM/Mailing/MailingSystemTest.php +++ b/tests/phpunit/CRM/Mailing/MailingSystemTest.php @@ -195,8 +195,7 @@ class CRM_Mailing_MailingSystemTest extends CRM_Mailing_BaseMailingSystemTest { // transaction still increments the AUTO_INCREMENT counter for the table. // (If this behaviour ever changes we throw an exception.) if ($isMultiLingual) { - $this->enableMultilingual(); - CRM_Core_I18n_Schema::addLocale('fr_FR', 'en_US'); + $cleanup = $this->useMultilingual(['en_US' => 'fr_FR']); } $max_group_id = CRM_Core_DAO::singleValueQuery("SELECT MAX(id) FROM civicrm_group"); $max_mailing_id = 0; -- 2.25.1