diff --git a/tests/integration/Mailer/MailerTest.php b/tests/integration/Mailer/MailerTest.php index 4cb7ff102d..a3ccb2189b 100644 --- a/tests/integration/Mailer/MailerTest.php +++ b/tests/integration/Mailer/MailerTest.php @@ -185,7 +185,7 @@ class MailerTest extends \MailPoetTest { } function testItCanSend() { - if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; + if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped(); $this->sender['address'] = 'staff@mailpoet.com'; $mailer = new Mailer(); $mailer->init($this->mailer, $this->sender, $this->reply_to); diff --git a/tests/integration/Mailer/Methods/AmazonSESTest.php b/tests/integration/Mailer/Methods/AmazonSESTest.php index e2a7e0ec75..f336cf8b25 100644 --- a/tests/integration/Mailer/Methods/AmazonSESTest.php +++ b/tests/integration/Mailer/Methods/AmazonSESTest.php @@ -215,7 +215,7 @@ class AmazonSESTest extends \MailPoetTest { } function testItCannotSendWithoutProperAccessKey() { - if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; + if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped(); $this->mailer->aws_access_key = 'somekey'; $result = $this->mailer->send( $this->newsletter, @@ -253,7 +253,7 @@ class AmazonSESTest 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 diff --git a/tests/integration/Mailer/Methods/MailPoetAPITest.php b/tests/integration/Mailer/Methods/MailPoetAPITest.php index 912f9acf81..9e65b9e47c 100644 --- a/tests/integration/Mailer/Methods/MailPoetAPITest.php +++ b/tests/integration/Mailer/Methods/MailPoetAPITest.php @@ -126,7 +126,7 @@ class MailPoetAPITest extends \MailPoetTest { } function testItWillNotSendIfApiKeyIsMarkedInvalid() { - if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; + if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') $this->markTestSkipped(); $this->mailer->api_key = 'someapi'; $this->mailer->services_checker = Stub::make( new ServicesChecker(), @@ -141,7 +141,7 @@ class MailPoetAPITest 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->setKey('someapi'); $result = $this->mailer->send( $this->newsletter, @@ -151,7 +151,7 @@ class MailPoetAPITest 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 diff --git a/tests/integration/Mailer/Methods/PHPMailTest.php b/tests/integration/Mailer/Methods/PHPMailTest.php index 03e0a7e86e..cc589b7d0a 100644 --- a/tests/integration/Mailer/Methods/PHPMailTest.php +++ b/tests/integration/Mailer/Methods/PHPMailTest.php @@ -145,7 +145,7 @@ class PHPMailTest 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 diff --git a/tests/integration/Mailer/Methods/SMTPTest.php b/tests/integration/Mailer/Methods/SMTPTest.php index 1e1dbe8315..2ef89487a6 100644 --- a/tests/integration/Mailer/Methods/SMTPTest.php +++ b/tests/integration/Mailer/Methods/SMTPTest.php @@ -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 diff --git a/tests/integration/Mailer/Methods/SendGridTest.php b/tests/integration/Mailer/Methods/SendGridTest.php index 7e66d1e6e7..3435892d68 100644 --- a/tests/integration/Mailer/Methods/SendGridTest.php +++ b/tests/integration/Mailer/Methods/SendGridTest.php @@ -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