function MailhandlerProcessingTestCase::testMailhandlerCommandsParse in Mailhandler 6
Verify the commands parsing functionality.
File
- ./
mailhandler.test, line 354 - Simpletest case for mailhandler module.
Class
- MailhandlerProcessingTestCase
- Processors tests for mailhandler module.
Code
function testMailhandlerCommandsParse() {
// Initialise a node object
$node = new stdClass();
$node->type = 'dummy';
$commands = array(
'ping: 23',
'pong: 42',
);
mailhandler_node_process_message_commands(&$node, $commands);
$this
->pass("<pre>" . print_r($node, 1) . "</pre>");
}