本文整理汇总了PHP中EmailMarketing::create_export_query方法的典型用法代码示例。如果您正苦于以下问题:PHP EmailMarketing::create_export_query方法的具体用法?PHP EmailMarketing::create_export_query怎么用?PHP EmailMarketing::create_export_query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EmailMarketing
的用法示例。
在下文中一共展示了EmailMarketing::create_export_query方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testcreate_export_query
public function testcreate_export_query()
{
$emailMarketing = new EmailMarketing();
//test with empty string params
$expected = " SELECT email_marketing.* , jt0.name template_name , jt0.assigned_user_id template_name_owner , 'EmailTemplates' template_name_mod FROM email_marketing LEFT JOIN email_templates jt0 ON email_marketing.template_id=jt0.id AND jt0.deleted=0\n\n AND jt0.deleted=0 where email_marketing.deleted=0";
$actual = $emailMarketing->create_export_query('', '');
$this->assertSame($expected, $actual);
//test with valid string params
$expected = " SELECT email_marketing.* , jt0.name template_name , jt0.assigned_user_id template_name_owner , 'EmailTemplates' template_name_mod FROM email_marketing LEFT JOIN email_templates jt0 ON email_marketing.template_id=jt0.id AND jt0.deleted=0\n\n AND jt0.deleted=0 where (email_marketing.name=\"\") AND email_marketing.deleted=0";
$actual = $emailMarketing->create_export_query('email_marketing.id', 'email_marketing.name=""');
$this->assertSame($expected, $actual);
}