Skip to content

Commit

Permalink
Moving __osFix to top of file. Adding test for EmailComponent::startu…
Browse files Browse the repository at this point in the history
…p().
  • Loading branch information
jperras committed Aug 9, 2009
1 parent d43041b commit 73e6597
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions cake/tests/cases/libs/controller/components/email.test.php
Expand Up @@ -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
*
Expand Down Expand Up @@ -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.