Closed (fixed)
Project:
SimpleTest
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Sep 2009 at 16:43 UTC
Updated:
6 Nov 2009 at 21:53 UTC
Jump to comment: Most recent file
First, thanks for a great module.
I have a questions about the use if "file_directory_path()" as the "originalFileDirecotry" and it's use in DrupalWebTestCase->drupalGetTestFile.
This points to the sites 'files/simpletest' directory. Since the copying of the files could fail in the module install (like mine did), I propose that we add a check to see if the file exists. If it doesn't, check the drupal_get_path('module', 'simpletest') . '/files' location. Otherwise you get alot of failure in many different simpletest module scripts, including imagefield and fieldfield.
I'm attaching a patch for this.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | simpletest-568526.patch | 961 bytes | indytechcook |
Comments
Comment #1
indytechcook commentedAttaching patch.
Comment #2
indytechcook commentedsetting to needs review.
Comment #3
boombatower commentedPerhaps we should just make a failure message during install?
Comment #4
boombatower commentedAlso, how does it fail. If it has write access and all it should work?
Comment #5
indytechcook commentedIt failed during the install profile. I'm not exactly sure how it failed. I'll step through with the debugger.
I had first thought about giving the ability to specify a file location which could be useful for other modules.
That is a very good question. I didn't find any good reason why it failed, my only thought is that it had something to do with the install profile.
Comment #6
boombatower commentedPlease re-open if you have more details.