Adds method to ping Bridge

This commit is contained in:
Vlad
2017-12-02 20:29:50 -05:00
parent 8d7289e8ba
commit aa4d78b1c9
2 changed files with 16 additions and 0 deletions

View File

@ -247,6 +247,11 @@ class BridgeTest extends \MailPoetTest {
$bridge->onSettingsSave($settings);
}
function testItPingsBridge() {
if(getenv('WP_TEST_ENABLE_NETWORK_TESTS') !== 'true') return;
expect(Bridge::pingBridge())->true();
}
private function setMailPoetSendingMethod() {
Setting::setValue(
Mailer::MAILER_CONFIG_SETTING_NAME,