From 093974e2aa32449779bc42523baf3bb6c349ac5e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 20 May 2016 11:15:55 +0000 Subject: [PATCH] Fix undefined veriable --- tests/phpunit/CRM/Core/BAO/CustomGroupTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php index 43f35d0712..887049a0bf 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomGroupTest.php @@ -103,13 +103,14 @@ class CRM_Core_BAO_CustomGroupTest extends CiviUnitTestCase { public function testGetTreetContactSubTypeForMultipleSubTypes() { $contactType1 = $this->callApiSuccess('ContactType', 'create', array('name' => 'Big Bank', 'label' => 'biggee', 'parent_id' => 'Organization')); - $contactType2 = $this->callAPISuccess('ContactType', 'create', array('name' => 'Small Bank', 'label' => 'small', 'parent_id' => 'Organization')); + $contactType2 = $this->callAPISuccess('ContactType', 'create', array('name' => 'Small Bank', 'label' => 'smallee', 'parent_id' => 'Organization')); $customGroup = $this->CustomGroupCreate(array('extends' => 'Organization', 'extends_entity_column_value' => array('Big_Bank', 'Small_Bank'))); $customField = $this->customFieldCreate(array('custom_group_id' => $customGroup['id'])); $result1 = CRM_Core_BAO_CustomGroup::getTree('Organization', NULL, NULL, NULL, array('Big_Bank')); $this->assertEquals('Custom Field', $result1[$customGroup['id']]['fields'][$customField['id']]['label']); $this->customGroupDelete($customGroup['id']); - $this->callAPISuccess('ContactType', 'delete', array('id' => $contactType['id'])); + $this->callAPISuccess('ContactType', 'delete', array('id' => $contactType1['id'])); + $this->callAPISuccess('ContactType', 'delete', array('id' => $contactType2['id'])); } /** -- 2.25.1