From b3748c573bff96c7abfca2392a23d3f19db147b9 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 6 Oct 2014 16:13:53 +0530 Subject: [PATCH] Additional fix --- tests/phpunit/WebTest/Admin/MoveCustomDataTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Admin/MoveCustomDataTest.php b/tests/phpunit/WebTest/Admin/MoveCustomDataTest.php index f5169ca198..63623a5e03 100644 --- a/tests/phpunit/WebTest/Admin/MoveCustomDataTest.php +++ b/tests/phpunit/WebTest/Admin/MoveCustomDataTest.php @@ -43,6 +43,7 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase { $cid_to_missing = $this->_createContact("destination_missing", "move_custom_data"); $from_group_id = $this->_buildCustomFieldSet("source"); + CRM_Utils_System::flushCache(); $to_group_id = $this->_buildCustomFieldSet("destination"); $this->_fillCustomDataForContact($cid_all, $from_group_id); @@ -383,7 +384,6 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase { $this->waitForText('crm-notification-container', "Custom field '$fieldLabel' has been saved."); //get the custom id of the custom field that was just created - CRM_Utils_System::flushCache(); $results = $this->webtest_civicrm_api("CustomField", "get", array('label' => $fieldLabel, 'custom_group_id' => $group_id)); //While there _technically_ could be two fields with the same name, its highly unlikely //so assert that exactly one result is return -- 2.25.1