Replace constant in tests

[MAILPOET-2367]
This commit is contained in:
Pavel Dohnal
2019-09-25 07:49:16 +02:00
committed by Jack Kitterhing
parent 1bedf1fd1a
commit 910b62cd70
5 changed files with 8 additions and 8 deletions

View File

@@ -95,8 +95,8 @@ class DaemonHttpRunnerTest extends \MailPoetTest {
$daemon = $this->makeEmpty(Daemon::class);
$daemon_http_runner = $this->make(DaemonHttpRunner::class, [
'pauseExecution' => Expected::exactly(1, function($pause_delay) {
expect($pause_delay)->lessThan(CronHelper::DAEMON_EXECUTION_LIMIT);
expect($pause_delay)->greaterThan(CronHelper::DAEMON_EXECUTION_LIMIT - 1);
expect($pause_delay)->lessThan(CronHelper::getDaemonExecutionLimit());
expect($pause_delay)->greaterThan(CronHelper::getDaemonExecutionLimit() - 1);
}),
'callSelf' => null,
'terminateRequest' => null,