$this->
assertTrue($batch['progressive'
]);
} /**
* Tests setQueue().
*
* @covers ::setQueue
*/
public function testSetQueue() { $batch =
(new BatchBuilder()) ->
setQueue('BatchName', '\Drupal\Core\Queue\Batch'
) ->
toArray();
$this->
assertEquals([ 'name' => 'BatchName',
'class' => '\Drupal\Core\Queue\Batch',
],
$batch['queue'
], 'Batch queue has been set.'
);
} /**
* Tests queue class exists.
*
* @covers ::setQueue
*/