You are here

protected function CommandHelperTest::runBatch in Search API 8

Runs the currently set batch, if any exists.

1 call to CommandHelperTest::runBatch()
CommandHelperTest::testIndexItemsToIndexCommand in tests/src/Kernel/System/CommandHelperTest.php
Tests the indexItemsToIndexCommand.

File

tests/src/Kernel/System/CommandHelperTest.php, line 396

Class

CommandHelperTest
Tests Search API functionality that gets executed by console utilities.

Namespace

Drupal\Tests\search_api\Kernel\System

Code

protected function runBatch() {
  $batch =& batch_get();
  if ($batch) {
    $batch['progressive'] = FALSE;
    batch_process();
  }
}