function CronSuspendQueueDelayTest::providerSuspendQueueThreshold

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Cron/CronSuspendQueueDelayTest.php \Drupal\Tests\Core\Cron\CronSuspendQueueDelayTest::providerSuspendQueueThreshold()

Data for testing.

Return value

array Scenarios for testing.

File

core/tests/Drupal/Tests/Core/Cron/CronSuspendQueueDelayTest.php, line 288

Class

CronSuspendQueueDelayTest
Test Cron handling of suspended queues with a delay.

Namespace

Drupal\Tests\Core\Cron

Code

public static function providerSuspendQueueThreshold() : array {
    $scenarios = [];
    $scenarios['cron will wait for the queue, and rerun'] = [
        15.0,
        10.0,
        TRUE,
    ];
    $scenarios['cron will not wait for the queue, and exit'] = [
        15.0,
        20.0,
        FALSE,
    ];
    return $scenarios;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.