Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix reset() missing delivery property.

Fixes #2533
  • Loading branch information...
commit b03d7ba9b33bfde31e2bd578aca0c764de5947e5 1 parent 167a551
@markstory markstory authored
View
1  lib/Cake/Controller/Component/EmailComponent.php
@@ -379,6 +379,7 @@ public function reset() {
$this->htmlMessage = null;
$this->textMessage = null;
$this->messageId = true;
+ // $this->delivery = 'mail';
}
/**
View
1  lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php
@@ -824,6 +824,7 @@ public function testReset() {
$this->assertSame($this->Controller->EmailTest->attachments, array());
$this->assertNull($this->Controller->EmailTest->textMessage);
$this->assertTrue($this->Controller->EmailTest->messageId);
+ $this->assertEquals('mail', $this->Controller->EmailTest->delivery);
}
public function testPluginCustomViewClass() {
Please sign in to comment.
Something went wrong with that request. Please try again.