Mark mailer tests as skipped
Instead of silently returning [MAILPOET-2358]
This commit is contained in:
committed by
Jack Kitterhing
parent
e8be427097
commit
3b390e9d88
@ -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
|
||||
|
Reference in New Issue
Block a user