From d213d6bb14b7c32dd463362f5718fc60fd298b56 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 18 Mar 2017 09:23:27 +1300 Subject: [PATCH] Fix test to use name that will not cause intermittant errors --- tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php index 802119b96b..03d908155d 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php @@ -293,12 +293,11 @@ DELETE FROM civicrm_contact_type * Success expected */ public function testCRM19133() { - $customGroupName = md5(microtime()); $subtypesToPreserve = array($this->student, $this->parent); // Create custom group that extends student and parent subtype $apiParams = array( - 'title' => $customGroupName, + 'title' => 'custom group', 'extends' => array('Individual', $subtypesToPreserve), 'is_active' => TRUE, ); @@ -309,7 +308,7 @@ DELETE FROM civicrm_contact_type $apiParams = array( 'debug' => 1, 'custom_group_id' => $result['id'], - 'label' => $customGroupName, + 'label' => 'custom field', 'html_type' => 'Text', 'data_type' => 'String', 'is_active' => TRUE, -- 2.25.1