function QueryBatchTest::testBatchSizeNegative
Tests a negative batch size throws an exception.
File
- 
              core/
modules/ migrate/ tests/ src/ Kernel/ QueryBatchTest.php, line 62  
Class
- QueryBatchTest
 - Tests query batching.
 
Namespace
Drupal\Tests\migrate\KernelCode
public function testBatchSizeNegative() : void {
  $this->expectException(MigrateException::class);
  $this->expectExceptionMessage('batch_size must be greater than or equal to zero');
  $plugin = $this->getPlugin([
    'batch_size' => -1,
  ]);
  $plugin->next();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.