From 553d92b5e61a7fdf17fb00aefc2f92277db4a9a3 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Fri, 2 Jul 2021 15:48:08 -0400 Subject: [PATCH] translation#38 - test for multilingual custom fields --- tests/phpunit/CRM/Core/I18n/SchemaTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/phpunit/CRM/Core/I18n/SchemaTest.php b/tests/phpunit/CRM/Core/I18n/SchemaTest.php index a065162dbb..7c395b5073 100644 --- a/tests/phpunit/CRM/Core/I18n/SchemaTest.php +++ b/tests/phpunit/CRM/Core/I18n/SchemaTest.php @@ -114,4 +114,11 @@ class CRM_Core_I18n_SchemaTest extends CiviUnitTestCase { } } + public function testMultilingualCustomFieldCreation() { + $this->enableMultilingual(); + CRM_Core_I18n_Schema::addLocale('fr_CA', 'en_US'); + $id = $this->customGroupCreate()['id']; + $this->customFieldCreate(['custom_group_id' => $id]); + } + } -- 2.25.1