From: jitendrapurohit Date: Wed, 15 Jul 2015 13:14:24 +0000 (+0530) Subject: CRM test fix CRM_Group_Page_AjaxTest.testTraditionalACL X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=08a2ea5e0f81fde724ce51c6cd44ab4285068791;p=civicrm-core.git CRM test fix CRM_Group_Page_AjaxTest.testTraditionalACL --- diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index a7a361e338..bb9fe05020 100755 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -3079,10 +3079,6 @@ AND ( TABLE_NAME LIKE 'civicrm_value_%' ) 'view picked', 'civicrm_group', $this->_permissionedGroup, 'Edit', 'civicrm_saved_search', {$this->_permissionedDisabledGroup}, 1 ); "); - //flush cache - CRM_ACL_BAO_Cache::resetCache(); - CRM_Contact_BAO_Group::getPermissionClause(TRUE); - CRM_ACL_API::groupPermission('whatever', 9999, NULL, 'civicrm_saved_search', NULL, NULL, TRUE); } $this->_loggedInUser = CRM_Core_Session::singleton()->get('userID'); @@ -3090,6 +3086,13 @@ AND ( TABLE_NAME LIKE 'civicrm_value_%' ) 'group_id' => $this->_permissionedGroup, 'contact_id' => $this->_loggedInUser, )); + + if (!$isProfile) { + //flush cache + CRM_ACL_BAO_Cache::resetCache(); + CRM_Contact_BAO_Group::getPermissionClause(TRUE); + CRM_ACL_API::groupPermission('whatever', 9999, NULL, 'civicrm_saved_search', NULL, NULL, TRUE); + } } /**