Files
piratepoet/mailpoet/tests/unit/Settings/HostsTest.php
Rodrigo Primo fa9236d8c9 Replace expect()->greaterThan() with verify()->greaterThan()
codeception/verify 2.1 removed support for expect()->greaterThan() so we need
to replace it with verify()->greaterThan().

[MAILPOET-5664]
2023-10-24 08:58:22 +03: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();
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);
}
}
}