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