Files
piratepoet/mailpoet/tests/unit/Settings/HostsTest.php
Jan Jakes 82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00

28 lines
683 B
PHP

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