'table' => 'civicrm_tag',
),
);
+ $params['uf_user'] = array(
+ 'title' => 'CMS User',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
$params['birth_date_low'] = array('name' => 'birth_date_low', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birth Date is equal to or greater than'));
$params['birth_date_high'] = array('name' => 'birth_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birth Date is equal to or less than'));
$params['deceased_date_low'] = array('name' => 'deceased_date_low', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Deceased Date is equal to or greater than'));
public $setupIDs = array();
/**
- * PHPUnit Mock Mecthod to use.
+ * PHPUnit Mock Method to use.
*
* @var string
*/
'id' => '@user:exampleUser',
));
$this->assertEquals('testGetByUsername', $result['values'][$cid]['first_name']);
+
+ // Check search of contacts with & without uf records
+ $result = $this->callAPISuccess('Contact', 'get', ['uf_user' => 1]);
+ $this->assertArrayHasKey($cid, $result['values']);
+
+ $result = $this->callAPISuccess('Contact', 'get', ['uf_user' => 0]);
+ $this->assertArrayNotHasKey($cid, $result['values']);
}
/**