Files
piratepoet/mailpoet/tests/integration/Cron/ActionScheduler/ActionSchedulerTestHelper.php
2022-08-03 10:36:57 +02:00

22 lines
624 B
PHP

<?php declare(strict_types=1);
namespace MailPoet\Cron\ActionScheduler;
class ActionSchedulerTestHelper {
public function getMailPoetScheduledActions(): array {
$actions = as_get_scheduled_actions([
'group' => ActionScheduler::GROUP_ID,
'status' => [\ActionScheduler_Store::STATUS_PENDING, \ActionScheduler_Store::STATUS_RUNNING],
]);
return $actions;
}
public function getMailPoetCompleteActions(): array {
$actions = as_get_scheduled_actions([
'group' => ActionScheduler::GROUP_ID,
'status' => [\ActionScheduler_Store::STATUS_COMPLETE],
]);
return $actions;
}
}