Commit b3ac555f authored by catch's avatar catch

Issue #2158259 by Wim Leers: Batch system's ProcessingTest has some broken tests.

parent f82a0684
......@@ -35,7 +35,7 @@ public static function getInfo() {
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->assertBatchMessages($this->_resultMessages('batch_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.');
}
......@@ -153,7 +153,7 @@ function testDrupalFormSubmitInBatch() {
function testBatchLargePercentage() {
// Displaying the page triggers batch 5.
$this->drupalGet('batch-test/large-percentage');
$this->assertBatchMessages($this->_resultMessages(1), 'Batch for step 2 performed successfully.');
$this->assertBatchMessages($this->_resultMessages('batch_5'), 'Batch for step 2 performed successfully.');
$this->assertEqual(batch_test_stack(), $this->_resultStack('batch_5'), 'Execution order was correct.');
$this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
}
......@@ -271,7 +271,7 @@ function _resultMessages($id) {
break;
case 'batch_5':
$messages[] = 'results for batch 5<br />op 1: processed 10 elements. $context[\'finished\'] > 1 returned from batch process, with success.';
$messages[] = 'results for batch 5<br />op 5: processed 10 elements';
break;
case 'chained':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment