Mark mailer tests as skipped

Instead of silently returning

[MAILPOET-2358]
This commit is contained in:
Pavel Dohnal
2019-09-17 15:08:12 +02:00
committed by Jack Kitterhing
parent e8be427097
commit 3b390e9d88
6 changed files with 11 additions and 11 deletions

View File

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