Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
21 Nov 2013 at 02:33 UTC
Updated:
29 Jul 2014 at 23:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettWell this is option #1, for now.
Comment #2
amateescu commentedHeey, you stole my patch :D
Comment #3
tim.plunkettComment #4
berdirA different problem, but has anyone seen the problem where it always displays a test execution of 0 seconds? I have that on some systems, no idea why.
Comment #5
amateescu commentedThis patch fixes it.
Comment #6
dawehnerI was so sure that this was a trick of tim to force people to write proper unit tests instead.
Comment #7
tim.plunkettIssue #2140505 by amateescu, tim.plunkett: Re-running a simpletest no longer displays the batch progress or duration.Comment #8
chx commented*blink* what has happened to form API here? How, if at all, does whatever happened here affect other modules?
Comment #9
chx commentedTo elaborate:
drupal_form_submit()did a$form_state['programmed'] = TRUE;in D7, that's for sure. But I am not entirely sure how simpletest got to the point where it calls the equivalent ofdrupal_form_submitor why.Edit: and whether that reason applies to other scenarios too.
Comment #10
webchickI had much the same questions as chx. Basically, what's happening here is SimpleTest is programmatically submitting forms behind the scenes and this was never compatible with Batch API (and is documented as such). However, Tim hadn't read this documentation when doing the conversion in #2125633: PHPUnit tests cannot be rerun from Simpletest UI and so accidentally introduced this bug. This is a partial revert of that patch to restore the UI elements of batch API in this part.
Committed and pushed to 8.x. Thanks!