Permalink
Browse files

Test to proof that render itself should handle the boundary.

  • Loading branch information...
1 parent 0ca1ba3 commit b346c4af8e0f927e80e6166a33e402d0f703ee37 @dereuromark dereuromark committed Jun 29, 2013
Showing with 24 additions and 0 deletions.
  1. +24 −0 lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
@@ -65,6 +65,14 @@ public function encode($text) {
return $this->_encode($text);
}
+/**
+ * Render to protected method
+ *
+ */
+ public function render($content) {
+ return $this->_render($content);
+ }
+
}
/*
@@ -1485,6 +1493,22 @@ public function testWrap() {
}
/**
+ * testRender method
+ *
+ * @return void
+ */
+ public function testRenderWithLayoutAndAttachment() {
+ $this->CakeEmail->emailFormat('html');
+ $this->CakeEmail->template('html', 'default');
+ $this->CakeEmail->attachments(array(CAKE . 'basics.php'));
+ $result = $this->CakeEmail->render(array());
+ $this->assertNotEmpty($result);
+
+ $result = $this->CakeEmail->getBoundary();
+ $this->assertNotEmpty($result);
+ }
+
+/**
* testConstructWithConfigArray method
*
* @return void

0 comments on commit b346c4a

Please sign in to comment.