mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Test to proof that render itself should handle the boundary.
This commit is contained in:
parent
0ca1ba3211
commit
b346c4af8e
1 changed files with 24 additions and 0 deletions
|
@ -65,6 +65,14 @@ class TestCakeEmail extends CakeEmail {
|
|||
return $this->_encode($text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render to protected method
|
||||
*
|
||||
*/
|
||||
public function render($content) {
|
||||
return $this->_render($content);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1484,6 +1492,22 @@ class CakeEmailTest extends CakeTestCase {
|
|||
$this->assertSame($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue