test failure fix
authordeb.monish <monish.deb@jmaconsulting.biz>
Fri, 13 Apr 2018 12:43:56 +0000 (18:13 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Fri, 13 Apr 2018 12:43:56 +0000 (18:13 +0530)
CRM/Core/CodeGen/Reflection.php

index 6459288e5936187fb11de0fbcfc428b2551dd958..0dd7f23545077bf3b1f6492a5f66134ea70837be 100644 (file)
@@ -12,6 +12,12 @@ class CRM_Core_CodeGen_Reflection extends CRM_Core_CodeGen_BaseTask {
   public function needsUpdate() {
     // Generating this file is fairly cheap, and we don't have robust heuristic
     // for the checksum.
+
+    // skip this task on test environment as the schema generation should only be triggered during installation/upgrade
+    if (CIVICRM_UF == 'UnitTests') {
+      return FALSE;
+    }
+
     return TRUE;
   }