From e2645c338c97fcbf610f3e8c35a3973f0b383bc9 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 17 Aug 2022 00:07:23 -0700 Subject: [PATCH] CopyTest - Update multilingual helper calls --- tests/phpunit/CRM/Core/CopyTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/phpunit/CRM/Core/CopyTest.php b/tests/phpunit/CRM/Core/CopyTest.php index e34d5d3f92..4abdda6e72 100644 --- a/tests/phpunit/CRM/Core/CopyTest.php +++ b/tests/phpunit/CRM/Core/CopyTest.php @@ -67,10 +67,7 @@ class CRM_Core_CopyTest extends CiviUnitTestCase { $locales = ['en_US', 'fr_CA', 'nl_NL']; - $this->enableMultilingual(); - CRM_Core_I18n_Schema::addLocale('fr_CA', 'en_US'); - CRM_Core_I18n_Schema::addLocale('nl_NL', 'en_US'); - + $cleanup = $this->useMultilingual(['en_US' => ['fr_CA', 'nl_NL']]); CRM_Core_I18n::singleton()->setLocale('en_US'); $event = $this->eventCreate(); @@ -150,11 +147,6 @@ class CRM_Core_CopyTest extends CiviUnitTestCase { // other fields $this->compareLocalizedCopy($eventData, $eventCopy, $locParams, $identicalParams, $locSuffix); } - - // reset to en_US only - CRM_Core_I18n::singleton()->setLocale('en_US'); - CRM_Core_I18n_Schema::makeSinglelingual('en_US'); - } protected function compareLocalizedCopy($source, $dest, $locParams, $identicalParams, $locSuffix) { -- 2.25.1