Added the email folder to all network tests.

This commit is contained in:
Juan Basso 2011-04-24 23:30:48 -04:00
parent 96dd4a5c80
commit 6ec61746fd
2 changed files with 3 additions and 2 deletions

View file

@ -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;
}

View file

@ -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'));