function CronTest::processQueuesTestData

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/CronTest.php \Drupal\Tests\Core\CronTest::processQueuesTestData()
  2. 11.x core/tests/Drupal/Tests/Core/CronTest.php \Drupal\Tests\Core\CronTest::processQueuesTestData()

Data provider for ::testProcessQueues() method.

File

core/tests/Drupal/Tests/Core/CronTest.php, line 179

Class

CronTest
Tests the Cron class.

Namespace

Drupal\Tests\Core

Code

public static function processQueuesTestData() {
    return [
        [
            'Complete',
            'assertFalse',
            0,
        ],
        [
            'Exception',
            'assertTrue',
            1,
        ],
        [
            'DelayedRequeueException',
            'assertFalse',
            1,
        ],
        [
            'SuspendQueueException',
            'assertTrue',
            1,
        ],
        [
            'RequeueException',
            'assertFalse',
            0,
        ],
    ];
}

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