Files
piratepoet/tests/unit/Settings/HostsCest.php
Jonathan Labreuille f59670005e unit tests and cleanup
2015-10-15 18:21:42 +02:00

25 lines
577 B
PHP

<?php
use \MailPoet\Settings\Hosts;
class HostsCest {
function itReturnsAListOfWebHosts() {
$web_hosts = Hosts::getWebHosts();
expect($web_hosts)->notEmpty();
foreach($web_hosts as $host) {
expect($host['interval'])->greaterThan(0);
expect($host['emails'])->greaterThan(0);
}
}
function itReturnsAListOfSMTPHosts() {
$smtp_hosts = Hosts::getSMTPHosts();
expect($smtp_hosts)->notEmpty();
foreach($smtp_hosts as $host) {
expect($host['interval'])->greaterThan(0);
expect($host['emails'])->greaterThan(0);
}
}
}