Permalink
Browse files

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

…p().
  • Loading branch information...
1 parent d43041b commit 73e65973797b7311d4519d11daf8269da9a02cad @jperras jperras committed Aug 9, 2009
Showing with 17 additions and 6 deletions.
  1. +17 −6 cake/tests/cases/libs/controller/components/email.test.php
View
23 cake/tests/cases/libs/controller/components/email.test.php
@@ -230,6 +230,17 @@ function tearDown() {
}
/**
+ * osFix method
+ *
+ * @param string $string
+ * @access private
+ * @return string
+ */
+ function __osFix($string) {
+ return str_replace(array("\r\n", "\r"), "\n", $string);
+ }
+
+/**
* testBadSmtpSend method
*
* @access public
@@ -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.