Browse Source

Added the email folder to all network tests.

Juan Basso 15 years ago
parent
commit
6ec61746fd

+ 1 - 0
lib/Cake/tests/Case/AllNetworkTest.php

@@ -35,6 +35,7 @@ class AllNetworkTest extends PHPUnit_Framework_TestSuite {
 		$suite = new CakeTestSuite('All Network related class tests');
 
 		$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network');
+		$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network' . DS . 'Email');
 		$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network' . DS . 'Http');
 		return $suite;
 	}

+ 2 - 2
lib/Cake/tests/Case/Network/Email/SmtpTransportTest.php

@@ -211,8 +211,8 @@ class StmpProtocolTest extends CakeTestCase {
  * @return void
  */
 	public function testSendData() {
-		$this->getMock('CakeEmail', array('message'), array(), 'TestCakeEmail');
-		$email = new TestCakeEmail();
+		$this->getMock('CakeEmail', array('message'), array(), 'SmtpCakeEmail');
+		$email = new SmtpCakeEmail();
 		$email->from('noreply@cakephp.org', 'CakePHP Test');
 		$email->to('cake@cakephp.org', 'CakePHP');
 		$email->cc(array('mark@cakephp.org' => 'Mark Story', 'juan@cakephp.org' => 'Juan Basso'));