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

@ -76,7 +76,7 @@ class SendGridTest extends \MailPoetTest {
}
function testItCannotSendWithoutProperApiKey() {
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return;
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped();
$this->mailer->api_key = 'someapi';
$result = $this->mailer->send(
$this->newsletter,
@ -103,7 +103,7 @@ class SendGridTest 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