CRM-21627: makeMultilingual: update dbLocale to avoid fatal if lcMessages was not...
authorMathieu Lutfy <mathieu@bidon.ca>
Tue, 9 Jan 2018 20:53:58 +0000 (15:53 -0500)
committerMathieu Lutfy <mathieu@bidon.ca>
Tue, 9 Jan 2018 20:53:58 +0000 (15:53 -0500)
tests/phpunit/CRM/Logging/LoggingTest.php

index f0422ca869878709c1dc5a632867f2a8ded767ef..71798543975846255835e2785c3a185faaed8b44 100644 (file)
@@ -41,13 +41,13 @@ class CRM_Logging_LoggingTest extends CiviUnitTestCase {
     $value = CRM_Core_DAO::singleValueQuery("SELECT id FROM log_civicrm_contact LIMIT 1", array(), FALSE, FALSE);
     $this->assertNotNull($value, 'Logging not enabled successfully');
     $logging->disableLogging();
-    CRM_Core_DAO::executeQuery("ALTER TABLE `civicrm_option_value` ADD COLUMN `logging_test` INT DEFAULT NULL", array(), FALSE, NULL, FALSE, TRUE);
+    CRM_Core_DAO::executeQuery("ALTER TABLE `civicrm_option_value` ADD COLUMN `logging_test` INT DEFAULT NULL", array(), FALSE, NULL, FALSE, FALSE);
     CRM_Core_I18n_Schema::rebuildMultilingualSchema(array('en_US'));
     $logging->enableLogging();
     $query = CRM_Core_DAO::executeQuery("SHOW CREATE TABLE `log_civicrm_option_value`", array(), TRUE, NULL, FALSE, FALSE);
     $query->fetch();
     $create = explode("\n", $query->Create_Table);
-    CRM_Core_DAO::executeQuery("ALTER TABLE `civicrm_option_value` DROP COLUMN `logging_test`", array(), FALSE, NULL, FALSE, TRUE);
+    CRM_Core_DAO::executeQuery("ALTER TABLE `civicrm_option_value` DROP COLUMN `logging_test`", array(), FALSE, NULL, FALSE, FALSE);
     $this->assertTrue(in_array("  `logging_test` int(11) DEFAULT NULL", $create));
     $logging->disableLogging();
   }