From: Tim Otten Date: Wed, 17 Aug 2022 07:07:42 +0000 (-0700) Subject: MultilingualTest - Update multilingual helper calls X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79365d14e90ffa4dbdd138c348803d4a1fb5d59e;p=civicrm-core.git MultilingualTest - Update multilingual helper calls --- 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.