本文整理汇总了PHP中EmailMarketing::get_all_prospect_lists方法的典型用法代码示例。如果您正苦于以下问题:PHP EmailMarketing::get_all_prospect_lists方法的具体用法?PHP EmailMarketing::get_all_prospect_lists怎么用?PHP EmailMarketing::get_all_prospect_lists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EmailMarketing
的用法示例。
在下文中一共展示了EmailMarketing::get_all_prospect_lists方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testget_all_prospect_lists
public function testget_all_prospect_lists()
{
$emailMarketing = new EmailMarketing();
//execute the method and verify that it retunrs expected results
$expected = "select prospect_lists.* from prospect_lists left join prospect_list_campaigns on prospect_list_campaigns.prospect_list_id=prospect_lists.id where prospect_list_campaigns.deleted=0 and prospect_list_campaigns.campaign_id='' and prospect_lists.deleted=0 and prospect_lists.list_type not like 'exempt%'";
$actual = $emailMarketing->get_all_prospect_lists();
$this->assertSame($expected, $actual);
}