Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b3ac555f
Commit
b3ac555f
authored
Dec 20, 2013
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2158259
by Wim Leers: Batch system's ProcessingTest has some broken tests.
parent
f82a0684
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
...s/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
+3
-3
No files found.
core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
View file @
b3ac555f
...
...
@@ -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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment