Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jeremyharris/queue_email
base: d1dc11cc8d
...
head fork: jeremyharris/queue_email
compare: 70e6929de4
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
12 tests/cases/components/queue_email.test.php
@@ -103,6 +103,18 @@ function testInterpret() {
'password' => 'password',
);
$this->assertEqual($results, $expected);
+
+ $result = $this->QueueEmail->interpret($this->QueueEmail->Model->read(null, 3));
+ $results = implode(PHP_EOL, $result['Queue']['message']);
+ $expected = <<<HTML
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<body>
+<p>This is a test <strong>with</strong> html.</p>
+</body>
+</html>
+HTML;
+ $this->assertEqual($results, $expected);
}
function testSendWithoutQueue() {
View
2  tests/fixtures/queue_fixture.php
@@ -64,7 +64,7 @@ class QueueFixture extends CakeTestFixture {
'subject' => 'Mail',
'delivery' => null,
'smtp_options' => null,
- 'message' => null,
+ 'message' => 'a:6:{i:0;s:62:"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">";i:1;s:6:"<html>";i:2;s:6:"<body>";i:3;s:49:"<p>This is a test <strong>with</strong> html.</p>";i:4;s:7:"</body>";i:5;s:7:"</html>";}',
'header' => null,
'attempts' => 0,
'status' => 0,
View
3  vendors/shells/queue_sender.php
@@ -198,7 +198,8 @@ function _send($results) {
if (@unserialize($val) !== false) {
$val = unserialize($val);
}
- $varName = lcfirst(Inflector::camelize($var));
+ $varName = Inflector::camelize($var);
+ $varName = strtolower(substr($varName, 0, 1)) . substr($varName, 1);
if (in_array($varName, array('header', 'message'))) {
$varName = '__'.$varName;
}

No commit comments for this range

Something went wrong with that request. Please try again.