FROM civicrm_contact cc {$from}
{$aclFrom}
{$additionalFrom} {$includeEmailFrom}
- {$emailWhere}
+ {$emailWhere} AND cc.is_deleted = 0
{$orderByInner}
LIMIT 0, {$limit}
)
foreach ($expectedData as $index => $value) {
$this->assertEquals($value, $result['values'][$index]['data']);
}
+ $result = $this->callAPISuccess('contact', 'getquick', array(
+ 'name' => 'h.',
+ ));
+ $expectedData = array(
+ 'H Bobby, Bobby :: bob@h.com',
+ );
+ foreach ($expectedData as $index => $value) {
+ $this->assertEquals($value, $result['values'][$index]['data']);
+ }
+ $this->callAPISuccess('Setting', 'create', array('includeWildCardInName' => FALSE));
+ $result = $this->callAPISuccess('contact', 'getquick', array(
+ 'name' => 'h.',
+ ));
+ $this->callAPISuccess('Setting', 'create', array('includeWildCardInName' => TRUE));
+ $this->assertEquals(0, $result['count']);
}
/**