Remove phpstan errors from integration API tests

[MAILPOET-3235]
This commit is contained in:
Jan Lysý
2021-01-13 17:32:20 +01:00
committed by Veljko V
parent f140875062
commit bcb62403a1
8 changed files with 17 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ class SettingsTest extends \MailPoetTest {
$task = ScheduledTask::where('type', InactiveSubscribers::TASK_TYPE)
->whereRaw('status = ?', [ScheduledTask::STATUS_SCHEDULED])
->findOne();
assert($task instanceof ScheduledTask);
expect($task->scheduledAt)->lessThan(Carbon::now());
}