Tests batches triggered outside of form submission.
function testBatchNoForm() {
// Displaying the page triggers batch 1.
$this
->drupalGet('batch-test/no-form');
$this
->assertBatchMessages($this
->_resultMessages(1), 'Batch for step 2 performed successfully.');
$this
->assertEqual(batch_test_stack(), $this
->_resultStack('batch_1'), 'Execution order was correct.');
$this
->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
}