Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 00:27 UTC
Updated:
25 Jul 2009 at 06:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
JamesAn commentedA wrapper function as per #422362-20: convert form.inc to use new static caching API was created to reset the static var in file_test_file_scan_callback().
Comment #3
JamesAn commentedComment #5
boombatower commentedTechnically this is a duplicate of: #348455: Provide a scalable way to ensure a clean testing environment for SimpleTest, but we can just prioritize this one.
Comment #6
boombatower commentedPlease hold off on this patch though, longer standing patch with better cleanup of loading stuff #449198: SimpleTest: Clean up test loading and related API which also adds statics stuff. (just needs committing) [perhaps you want to review]
Comment #7
JamesAn commentedPostponed on account of #449198: SimpleTest: Clean up test loading and related API. Thanks for the heads up!
I'm not sure about reviewing that large patch... I've never reviewed anything before, much less a large patch of an unfamiliar module.. ^^"
Comment #8
boombatower commentedIssue has been committed.
Comment #9
boombatower commentedI added drupal_static() in checkPermissions(), but I am not sure where to go from there. In order to complete the process setUp() needs to take advantage of drupal_static_reset(), but I am not sure that is the scope of this particular issue.
Comment #11
boombatower commentedSuppose this would be a bad idea (carried over from original) :)
Comment #13
JamesAn commented+ return files;should be
+ return $files;Comment #15
boombatower commentedTest slave crapped.
Comment #16
JamesAn commentedRerolled.
Comment #17
boombatower commentedLooks good.
Comment #18
dries commentedSmall code style issue:
+ } else {. Fixed that and committed to CVS HEAD.