You are here

protected function DatasourceTaskTest::runBatch in Search API 8

Runs the currently set batch, if any.

1 call to DatasourceTaskTest::runBatch()
DatasourceTaskTest::testItemTranslations in tests/src/Kernel/Datasource/DatasourceTaskTest.php
Tests that datasource config changes are reflected correctly.

File

tests/src/Kernel/Datasource/DatasourceTaskTest.php, line 243

Class

DatasourceTaskTest
Tests task integration of the content entity datasource.

Namespace

Drupal\Tests\search_api\Kernel\Datasource

Code

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