mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added the email folder to all network tests.
This commit is contained in:
parent
96dd4a5c80
commit
6ec61746fd
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue