api-tests fix api call that errored on jenkins & non local
authorEileen <eileen@fuzion.co.nz>
Fri, 3 Jan 2014 04:47:53 +0000 (17:47 +1300)
committerEileen <eileen@fuzion.co.nz>
Fri, 3 Jan 2014 04:47:53 +0000 (17:47 +1300)
tests/phpunit/CRM/Contact/BAO/ContactTest.php

index 3398972bfff4663d396c2382d0f7daec0d499440..d4aa8b917f90ca6ef2c7186b157e3d97fdc16514 100644 (file)
@@ -1530,7 +1530,7 @@ class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase {
     $test = $this;
     $this->_testTimestamps(array(
       'INSERT' => function ($contactId) use ($test, $customGroup, $customField) {
-        $result = $this->callAPISuccess('contact', 'create', array(
+        $result = civicrm_api3('contact', 'create', array(
           'contact_id' => $contactId,
           'custom_' . $customField['id'] => 'test-1',
         ));