本文整理汇总了PHP中Meeting::set_notification_body方法的典型用法代码示例。如果您正苦于以下问题:PHP Meeting::set_notification_body方法的具体用法?PHP Meeting::set_notification_body怎么用?PHP Meeting::set_notification_body使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meeting
的用法示例。
在下文中一共展示了Meeting::set_notification_body方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testset_notification_body
public function testset_notification_body()
{
global $current_user;
$current_user = new User(1);
$meeting = new Meeting();
//test with attributes preset and verify template variables are set accordingly
$meeting->name = 'test';
$meeting->status = 'Not Held';
$meeting->type = 'Sugar';
$meeting->description = 'test description';
$meeting->duration_hours = 1;
$meeting->duration_minutes = 1;
$meeting->date_start = '2016-02-11 17:30:00';
$meeting->date_end = '2016-02-11 17:30:00';
$result = $meeting->set_notification_body(new Sugar_Smarty(), $meeting);
$this->assertEquals($meeting->name, $result->_tpl_vars['MEETING_SUBJECT']);
$this->assertEquals($meeting->status, $result->_tpl_vars['MEETING_STATUS']);
$this->assertEquals('SuiteCRM', $result->_tpl_vars['MEETING_TYPE']);
$this->assertEquals($meeting->duration_hours, $result->_tpl_vars['MEETING_HOURS']);
$this->assertEquals($meeting->duration_minutes, $result->_tpl_vars['MEETING_MINUTES']);
$this->assertEquals($meeting->description, $result->_tpl_vars['MEETING_DESCRIPTION']);
}