Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
598dc483
Commit
598dc483
authored
Apr 25, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#335756
by Damien Tournoud, hass: fixed simpletest file directory path.
parent
39f26516
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/simpletest/drupal_web_test_case.php
modules/simpletest/drupal_web_test_case.php
+2
-2
No files found.
modules/simpletest/drupal_web_test_case.php
View file @
598dc483
...
...
@@ -831,6 +831,7 @@ protected function setUp() {
// Store necessary current values before switching to prefixed database.
$this
->
originalPrefix
=
$db_prefix
;
$this
->
originalFileDirectory
=
file_directory_path
();
$clean_url_original
=
variable_get
(
'clean_url'
,
0
);
// Generate temporary prefixed database to ensure that tests have a clean starting point.
...
...
@@ -874,8 +875,7 @@ protected function setUp() {
variable_set
(
'site_mail'
,
'simpletest@example.com'
);
// Use temporary files directory with the same prefix as database.
$this
->
originalFileDirectory
=
file_directory_path
();
variable_set
(
'file_directory_path'
,
file_directory_path
()
.
'/'
.
$db_prefix
);
variable_set
(
'file_directory_path'
,
$this
->
originalFileDirectory
.
'/'
.
$db_prefix
);
$directory
=
file_directory_path
();
// Create the files directory.
file_check_directory
(
$directory
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment