本文整理匯總了PHP中Lead::get_old_related_calls方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lead::get_old_related_calls方法的具體用法?PHP Lead::get_old_related_calls怎麽用?PHP Lead::get_old_related_calls使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Lead
的用法示例。
在下文中一共展示了Lead::get_old_related_calls方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testget_old_related_calls
public function testget_old_related_calls()
{
$lead = new Lead();
$expected = array();
$expected['select'] = 'SELECT calls.id ';
$expected['from'] = 'FROM calls ';
$expected['where'] = " WHERE calls.parent_id = '{$this->id}'\n AND calls.parent_type = 'Leads' AND calls.id NOT IN ( SELECT call_id FROM calls_leads ) ";
$expected['join'] = "";
$expected['join_tables'][0] = '';
$actual = $lead->get_old_related_calls();
$this->assertSame($expected, $actual);
}