mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
Added missing skipIf when no SMTP server is running.
This commit is contained in:
parent
6db8515e60
commit
9402f0ab79
1 changed files with 3 additions and 0 deletions
|
@ -437,6 +437,9 @@ TEMPDOC;
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function testSmtpSendMultipleTo() {
|
function testSmtpSendMultipleTo() {
|
||||||
|
if ($this->skipIf(!@fsockopen('localhost', 25), '%s No SMTP server running on localhost')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->Controller->EmailTest->reset();
|
$this->Controller->EmailTest->reset();
|
||||||
$this->Controller->EmailTest->to = array('postmaster@localhost', 'root@localhost');
|
$this->Controller->EmailTest->to = array('postmaster@localhost', 'root@localhost');
|
||||||
$this->Controller->EmailTest->from = 'noreply@example.com';
|
$this->Controller->EmailTest->from = 'noreply@example.com';
|
||||||
|
|
Loading…
Add table
Reference in a new issue