From 79365d14e90ffa4dbdd138c348803d4a1fb5d59e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 17 Aug 2022 00:07:42 -0700 Subject: [PATCH] MultilingualTest - Update multilingual helper calls --- tests/phpunit/api/v3/MultilingualTest.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/phpunit/api/v3/MultilingualTest.php b/tests/phpunit/api/v3/MultilingualTest.php index 1b8dc14018..4b1e4e61d7 100644 --- a/tests/phpunit/api/v3/MultilingualTest.php +++ b/tests/phpunit/api/v3/MultilingualTest.php @@ -31,7 +31,7 @@ class api_v3_MultilingualTest extends CiviUnitTestCase { } public function tearDown(): void { - CRM_Core_I18n_Schema::makeSinglelingual('en_US'); + $this->disableMultilingual(); parent::tearDown(); } @@ -39,17 +39,8 @@ class api_v3_MultilingualTest extends CiviUnitTestCase { * @dataProvider versionThreeAndFour */ public function testOptionLanguage($version) { - $this->enableMultilingual(); $this->_apiversion = $version; - - CRM_Core_I18n_Schema::addLocale('fr_CA', 'en_US'); - - $this->callAPISuccess('Setting', 'create', [ - 'languageLimit' => [ - 'en_US' => 1, - 'fr_CA' => 1, - ], - ]); + $this->enableMultilingual(['en_US' => 'fr_CA']); // Take a semi-random OptionGroup and test manually changing its label // in one language, while making sure it stays the same in English. -- 2.25.1