codeception/verify 2.1 removed support for expect()->greaterThan() so we need to replace it with verify()->greaterThan(). [MAILPOET-5664]
28 lines
683 B
PHP
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();
|
|
verify($webHosts)->notEmpty();
|
|
|
|
foreach ($webHosts as $host) {
|
|
verify($host['interval'])->greaterThan(0);
|
|
verify($host['emails'])->greaterThan(0);
|
|
}
|
|
}
|
|
|
|
public function testItReturnsAListOfSMTPHosts() {
|
|
$smtpHosts = Hosts::getSMTPHosts();
|
|
verify($smtpHosts)->notEmpty();
|
|
|
|
foreach ($smtpHosts as $host) {
|
|
verify($host['interval'])->greaterThan(0);
|
|
verify($host['emails'])->greaterThan(0);
|
|
}
|
|
}
|
|
}
|