Files
piratepoet/tests/unit/Settings/HostsTest.php
Jan Jakeš 1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00

28 lines
648 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);
}
}
}