+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @package CiviCRM_APIv3
* @subpackage API_Job
*
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2018
* @version $Id: Job.php 30879 2010-11-22 15:45:55Z shot $
*
*/
*/
public function testBatchMergeDateCustomFieldHandlingIsView() {
$this->customFieldCreate(array(
- 'id' => $this->customFieldID,
+ 'label' => 'OnlyView',
+ 'custom_group_id' => $this->customGroupID,
'is_view' => 1,
));
$customFieldLabel = 'custom_' . $this->customFieldID;
$result = $this->callAPISuccess('Job', 'process_batch_merge', array());
$this->assertEquals(1, count($result['values']['merged']));
$contact = $this->callAPISuccess('Contact', 'getsingle', array('id' => $contactID, 'return' => $customFieldLabel));
- $this->assertEquals('2012-11-03', $contact[$customFieldLabel]);
+ $this->assertEquals('2012-11-03 00:00:00', $contact[$customFieldLabel]);
}
/**