From acc660f44b78da2f9e563c77778bf47c19d19e97 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Fri, 13 Apr 2018 18:13:56 +0530 Subject: [PATCH] test failure fix --- CRM/Core/CodeGen/Reflection.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Core/CodeGen/Reflection.php b/CRM/Core/CodeGen/Reflection.php index 6459288e59..0dd7f23545 100644 --- a/CRM/Core/CodeGen/Reflection.php +++ b/CRM/Core/CodeGen/Reflection.php @@ -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; } -- 2.25.1