Mark mailer tests as skipped
Instead of silently returning [MAILPOET-2358]
This commit is contained in:
committed by
Jack Kitterhing
parent
e8be427097
commit
3b390e9d88
@@ -123,7 +123,7 @@ class SMTPTest extends \MailPoetTest {
|
||||
}
|
||||
|
||||
function testItCantSendWithoutProperAuthentication() {
|
||||
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return;
|
||||
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped();
|
||||
$this->mailer->login = 'someone';
|
||||
$this->mailer->mailer = $this->mailer->buildMailer();
|
||||
$result = $this->mailer->send(
|
||||
@@ -192,7 +192,7 @@ class SMTPTest extends \MailPoetTest {
|
||||
}
|
||||
|
||||
function testItCanSend() {
|
||||
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return;
|
||||
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped();
|
||||
$result = $this->mailer->send(
|
||||
$this->newsletter,
|
||||
$this->subscriber
|
||||
|
Reference in New Issue
Block a user