public function testset_notification_body() { $aCase = new aCase(); $aCase->name = 'test'; $aCase->priority = 'P1'; $aCase->status = 'Open_New'; $aCase->description = 'some text'; $result = $aCase->set_notification_body(new Sugar_Smarty(), $aCase); $this->assertEquals($aCase->name, $result->_tpl_vars['CASE_SUBJECT']); $this->assertEquals('High', $result->_tpl_vars['CASE_PRIORITY']); $this->assertEquals('New', $result->_tpl_vars['CASE_STATUS']); $this->assertEquals($aCase->description, $result->_tpl_vars['CASE_DESCRIPTION']); }