ContributionPageTranslationTest - Update multilingual helper calls
authorTim Otten <totten@civicrm.org>
Wed, 17 Aug 2022 07:08:26 +0000 (00:08 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 17 Aug 2022 07:08:26 +0000 (00:08 -0700)
tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php

index e498b25dbe3723f66459fa5d4881c5bc12eee1be..93234d184f72cb3c6148132bf6a34f7d5170928e 100644 (file)
@@ -20,14 +20,13 @@ class CRM_Contribute_Form_ContributionPageTranslationTest extends CiviUnitTestCa
   public function setUp(): void {
     parent::setUp();
     $this->_financialTypeID = 1;
-    $this->enableMultilingual();
-    CRM_Core_I18n_Schema::addLocale('fr_FR', 'en_US');
+    $this->enableMultilingual(['en_US' => 'fr_FR']);
   }
 
   public function tearDown(): void {
     global $dbLocale;
     if ($dbLocale) {
-      CRM_Core_I18n_Schema::makeSinglelingual('en_US');
+      $this->disableMultilingual();
     }
     parent::tearDown();
   }