diff --git a/test/class/mail.class.php b/test/class/mail.class.php index ca6403ab63..2df85f2299 100644 --- a/test/class/mail.class.php +++ b/test/class/mail.class.php @@ -11,8 +11,8 @@ class mailTest { global $tester; global $dao; - $this->dao = $dao; - $this->tester = $tester; + $this->dao = $dao; + $this->tester = $tester; $this->objectModel = $tester->loadModel('mail'); } @@ -212,11 +212,11 @@ class mailTest if($toList and $subject) { - $id = $this->dao->lastInsertID(); + $id = $this->dao->lastInsertID(); $object = $this->dao->select('*')->from(TABLE_NOTIFY)->where('id')->eq($id)->fetch(); } - if(!$object) return '没有数据提交'; + if(!$object) return '没有数据提交'; if(dao::isError()) return dao::getError(); return $object; diff --git a/test/model/mail/getconfigbymxrr.php b/test/model/mail/getconfigbymxrr.php index 5ad7411fd1..4954701b39 100644 --- a/test/model/mail/getconfigbymxrr.php +++ b/test/model/mail/getconfigbymxrr.php @@ -13,6 +13,7 @@ pid=1 */ $mail = new mailTest(); + $result1 = $mail->getConfigByMXRRTest('qq.com','test'); $result2 = $mail->getConfigByMXRRTest('sohu.com','test'); diff --git a/test/model/mail/getconfigfromprovider.php b/test/model/mail/getconfigfromprovider.php index ddd4c0153a..bf51755547 100644 --- a/test/model/mail/getconfigfromprovider.php +++ b/test/model/mail/getconfigfromprovider.php @@ -13,6 +13,7 @@ pid=1 */ $mail = new mailTest(); + $result1 = $mail->getConfigFromProviderTest('qq.com','123'); $result2 = $mail->getConfigFromProviderTest('sohu.com','123'); diff --git a/test/model/mail/getqueue.php b/test/model/mail/getqueue.php index cf8138f251..e8dde37f52 100644 --- a/test/model/mail/getqueue.php +++ b/test/model/mail/getqueue.php @@ -13,12 +13,13 @@ pid=1 */ $mail = new mailTest(); + $result1 = count($mail->getQueueTest()); $result2 = count($mail->getQueueTest('fail')); $result3 = count($mail->getQueueTest('wait')); $result4 = $mail->getQueueTest('wait'); -r($result1) && p() && e('7'); //按照收件人分组获取邮件列表个数 -r($result2) && p() && e('7'); //按照收件人分组获取发送失败的邮件数量 -r($result3) && p() && e('7'); //按照收件人分组获取待发送的邮件数量 +r($result1) && p() && e('7'); //按照收件人分组获取邮件列表个数 +r($result2) && p() && e('7'); //按照收件人分组获取发送失败的邮件数量 +r($result3) && p() && e('7'); //按照收件人分组获取待发送的邮件数量 r($result4) && p('0:data') && e('测试发信内容'); //按照收件人分组获取第一条待发送的邮件内容