Merge pull request #1847 from eileenmcnaughton/CRM-9683
[civicrm-core.git] / CRM / Mailing / Form / Test.php
index 664ecfacebe31307b2a7870f7e96a63282c47c69..5d5f9bb95ca34d93dc668b4760261db4bb472be4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -176,7 +176,7 @@ class CRM_Mailing_Form_Test extends CRM_Core_Form {
    * @param array $files      Any files posted to the form
    * @param array $self       an current this object
    *
-   * @return boolean          true on succesful SMTP handoff
+   * @return boolean          true on successful SMTP handoff
    * @access public
    */
   static function testMail($testParams, $files, $self) {
@@ -260,7 +260,7 @@ class CRM_Mailing_Form_Test extends CRM_Core_Form {
       }
     }
 
-    if (CRM_Utils_Array::value('_qf_Test_next', $testParams) && 
+    if (CRM_Utils_Array::value('_qf_Test_next', $testParams) &&
       $self->get('count') <= 0) {
       return array(
         '_qf_default' =>
@@ -276,7 +276,7 @@ class CRM_Mailing_Form_Test extends CRM_Core_Form {
       return $error;
     }
 
-    $job             = new CRM_Mailing_BAO_Job();
+    $job             = new CRM_Mailing_BAO_MailingJob();
     $job->mailing_id = $self->get('mailing_id');
     $job->is_test    = TRUE;
     $job->save();
@@ -342,7 +342,7 @@ ORDER BY   e.is_bulkmail DESC, e.is_primary DESC
     $testParams['job_id'] = $job->id;
     $isComplete = FALSE;
     while (!$isComplete) {
-      $isComplete = CRM_Mailing_BAO_Job::runJobs($testParams);
+      $isComplete = CRM_Mailing_BAO_MailingJob::runJobs($testParams);
     }
 
     if (CRM_Utils_Array::value('sendtest', $testParams)) {