Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2011 at 21:40 UTC
Updated:
2 Jun 2022 at 11:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aspilicious commentedSounds logical...
In case you didn't noticed:
-------------------------
$batch will be copied into $_batch.
Afterwards we make $batch empty.
Thats why the ID is stored in $_batch.
ps: does this needs a test?
Comment #2
aspilicious commentedBack to needs review for the test question
Comment #3
steven jones commentedGuess we should probably have a test that ensures that the session is cleaned up after the batch is run.
Comment #4
steven jones commentedAnd hopefully a fix for the issue as per the original post.
Comment #7
mgiffordreroll.
Comment #9
David_Rothstein commentedIt looks like this was fixed inadvertently in Drupal 8 by #1215104: Use the non-interactive installer in WebTestBase::setUp(), but the tests here would still be good to get into Drupal 8.
Bug itself still exists in Drupal 7 also.
Comment #20
quietone commentedInstead of making a new functional tests I took the risk of adding a couple of lines to an existing Batch test, system/tests/src/Functional/Batch/ProcessingTest.php. That does requires adding the 'session_test' modules to all the tests in that file. I am hoping that is OK.
Adding a test is Task.