From: Mathieu Lutfy Date: Tue, 27 Sep 2016 14:14:21 +0000 (+0000) Subject: CRM-19419: Add API test for option.language in multilingual (syntax fixes). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f2cc6a82c8fb94d89b78750107e0a8a3b604a11e;p=civicrm-core.git CRM-19419: Add API test for option.language in multilingual (syntax fixes). --- diff --git a/tests/phpunit/api/v3/MultilingualTest.php b/tests/phpunit/api/v3/MultilingualTest.php index d7070320d3..4dad68cb03 100644 --- a/tests/phpunit/api/v3/MultilingualTest.php +++ b/tests/phpunit/api/v3/MultilingualTest.php @@ -75,12 +75,12 @@ class api_v3_MultilingualTest extends CiviUnitTestCase { // Take a semi-random OptionGroup and test manually changing its label // in one language, while making sure it stays the same in English. $group = civicrm_api3('OptionGroup', 'getsingle', array( - 'name' => 'contact_edit_options' + 'name' => 'contact_edit_options', )); $english_original = civicrm_api3('OptionValue', 'getsingle', array( 'option_group_id' => $group['id'], - 'name' => 'IM' + 'name' => 'IM', )); civicrm_api3('OptionValue', 'create', array( @@ -98,7 +98,8 @@ class api_v3_MultilingualTest extends CiviUnitTestCase { $default = civicrm_api3('OptionValue', 'getsingle', array( 'option_group_id' => $group['id'], - 'name' => 'IM', 'option.language' => 'en_US', + 'name' => 'IM', + 'option.language' => 'en_US', )); $this->assertEquals($french['label'], 'Messagerie instantanée');