- πΊπΈUnited States smustgrave
Triggering for 10.1
Removing tests tag - Status changed to RTBC
about 2 years ago 7:52pm 4 February 2023 - πΊπΈUnited States smustgrave
Tested following the IS by placing
$batch =& batch_get(); $batch['progressive'] = FALSE; batch_process();
In a preprocess hook.
Without the fix I get a fatal error
With the fix I do not.
- Status changed to Needs work
about 2 years ago 12:38pm 6 February 2023 - π¬π§United Kingdom catch
+++ b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php @@ -68,6 +70,20 @@ public function testNoForm() { + $batch['progressive'] = FALSE; + batch_process(); + return new RedirectResponse(Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString()); + }
I was trying to work out if the redirect was necessary for the test, and I think it isn't. Could we make this return a hello world #markup render array or something else minimal?
Also is a route necessary here? Seems like it could maybe be a kernel test instead?