public function testCustomHeadersQueue() { $mail = new CM_Mail(); $subject = uniqid(); $mail->setSubject($subject); $mail->addCustomHeader('X-Foo', 'bar'); $mail->addCustomHeader('X-Bar', 'foo'); $mail->addCustomHeader('X-Foo', 'baz'); $mail->addTo('test'); $mail->setText('bla'); $mail->send(true); $result = CM_Db_Db::select('cm_mail', 'customHeaders', array('subject' => $subject)); $row = $result->fetch(); $this->assertEquals(unserialize($row['customHeaders']), array('X-Foo' => ['bar', 'baz'], 'X-Bar' => ['foo'])); }