}
public function tearDown(): void {
- CRM_Core_I18n_Schema::makeSinglelingual('en_US');
+ $this->disableMultilingual();
parent::tearDown();
}
* @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.