Beispiel #1
0
 public function testProcessQueue()
 {
     $mail = new CM_Mail();
     $mail->addTo('*****@*****.**');
     $mail->setSubject('foo');
     $mail->setText('bar');
     $mail->send(true);
     $mail->send(true);
     $mail->send(true);
     $this->assertSame(3, CM_Mail::getQueueSize());
     $mail->processQueue(1);
     $this->assertSame(2, CM_Mail::getQueueSize());
     $mail->processQueue(100);
     $this->assertSame(0, CM_Mail::getQueueSize());
 }