6 * Tests the Drush Batch subsystem.
10 class BatchCase extends CommandUnishTestCase
13 public function testBatch()
15 $sites = $this->setUpDrupal(1, true);
19 $this->drush('unit-batch', [], $options);
20 // Collect log messages that begin with "!!!" (@see: _drushUnitBatchOperation())
21 $parsed = $this->parseBackendOutput($this->getOutput());
22 $special_log_msgs = '';
23 foreach ($parsed['log'] as $key => $log) {
24 if (substr($log['message'], 0, 3) == '!!!') {
25 $special_log_msgs .= $log['message'];
28 $this->assertEquals("!!! ArrayObject does its job.", $special_log_msgs, 'Batch messages were logged');