Files
piratepoet/tests/unit/Settings/HostsTest.php
Ján Mikláš ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00

27 lines
647 B
PHP

<?php
namespace MailPoet\Test\Settings;
use MailPoet\Settings\Hosts;
class HostsTest extends \MailPoetUnitTest {
function testItReturnsAListOfWebHosts() {
$web_hosts = Hosts::getWebHosts();
expect($web_hosts)->notEmpty();
foreach ($web_hosts as $host) {
expect($host['interval'])->greaterThan(0);
expect($host['emails'])->greaterThan(0);
}
}
function testItReturnsAListOfSMTPHosts() {
$smtp_hosts = Hosts::getSMTPHosts();
expect($smtp_hosts)->notEmpty();
foreach ($smtp_hosts as $host) {
expect($host['interval'])->greaterThan(0);
expect($host['emails'])->greaterThan(0);
}
}
}