Skip to content
Permalink
Browse files

Moving __osFix to top of file. Adding test for EmailComponent::startu…

…p().
  • Loading branch information...
jperras committed Aug 9, 2009
1 parent d43041b commit 73e65973797b7311d4519d11daf8269da9a02cad
Showing with 17 additions and 6 deletions.
  1. +17 −6 cake/tests/cases/libs/controller/components/email.test.php
@@ -229,6 +229,17 @@ function tearDown() {
ClassRegistry::flush();
}
/**
* osFix method
*
* @param string $string
* @access private
* @return string
*/
function __osFix($string) {
return str_replace(array("\r\n", "\r"), "\n", $string);
}
/**
* testBadSmtpSend method
*
@@ -692,14 +703,14 @@ function testReset() {
}
/**
* osFix method
* testStartup method
*
* @param string $string
* @access private
* @return string
* @access public
* @return void
*/
function __osFix($string) {
return str_replace(array("\r\n", "\r"), "\n", $string);
function testStartup() {
$this->assertNull($this->Controller->EmailTest->startup($this->Controller));
}
}
?>

0 comments on commit 73e6597

Please sign in to comment.
You can’t perform that action at this time.