Пример #1
0
 /**
  * Test the LoadObjects function with recurring membership data.
  */
 public function testsendMailParticipantObjectsNoMail()
 {
     $this->_setUpParticipantObjects();
     $event = new CRM_Event_BAO_Event();
     $event->id = $this->_eventId;
     $event->is_email_confirm = FALSE;
     $event->save();
     $values = array();
     $tablesToTruncate = array('civicrm_mailing_spool');
     $this->quickCleanup($tablesToTruncate, FALSE);
     require_once 'CiviTest/CiviMailUtils.php';
     $mut = new CiviMailUtils($this, TRUE);
     $this->IPN->loadObjects($this->input, $this->ids, $this->objects, FALSE, $this->_processorId);
     $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, FALSE);
     $mut->assertMailLogEmpty('no mail should have been send as event set to no confirm');
     $mut->stop();
 }