From 3e39327d22e86f0dbc3e40f0591398932b9874a4 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 14 Sep 2016 21:39:26 +0000 Subject: [PATCH] Fix contact page ajax test as no array_column in php5.3 --- tests/phpunit/CRM/Contact/Page/AjaxTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/Page/AjaxTest.php b/tests/phpunit/CRM/Contact/Page/AjaxTest.php index 353c6cb423..ffba602b73 100644 --- a/tests/phpunit/CRM/Contact/Page/AjaxTest.php +++ b/tests/phpunit/CRM/Contact/Page/AjaxTest.php @@ -230,7 +230,9 @@ class CRM_Contact_Page_AjaxTest extends CiviUnitTestCase { $this->groupContactCreate($groupId); $contactIds = array_merge($contactIds, CRM_Contact_BAO_Group::getGroupContacts($groupId)); } - $contactIds = array_column($contactIds, 'contact_id'); + $contactIds = array_map(function($element) { + return $element['contact_id']; + }, $contactIds); // create custom group with contact reference field $customGroup = $this->customGroupCreate(array('extends' => 'Contact', 'title' => 'select_test_group')); -- 2.25.1