summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/upgrade/upgrade.upload.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-26 11:33:42 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-26 11:33:42 -0700
commit6af9c29d6338cb634906b48819ea2840fe15ff3f (patch)
tree0a4e1311858e8b9dd00f6ab4dd8f377013da8e08 /modules/simpletest/tests/upgrade/upgrade.upload.test
parent3a928db5053d17b36d73af9689059e4be5b8dcb6 (diff)
downloadbrdo-6af9c29d6338cb634906b48819ea2840fe15ff3f.tar.gz
brdo-6af9c29d6338cb634906b48819ea2840fe15ff3f.tar.bz2
Issue #1542854 by drumm, BTMash: Fixed system_update_7061() converts filepaths too aggressively.
Diffstat (limited to 'modules/simpletest/tests/upgrade/upgrade.upload.test')
-rw-r--r--modules/simpletest/tests/upgrade/upgrade.upload.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/simpletest/tests/upgrade/upgrade.upload.test b/modules/simpletest/tests/upgrade/upgrade.upload.test
index e3e1dc21e..276fae4e1 100644
--- a/modules/simpletest/tests/upgrade/upgrade.upload.test
+++ b/modules/simpletest/tests/upgrade/upgrade.upload.test
@@ -64,6 +64,12 @@ class UploadUpgradePathTestCase extends UpgradePathTestCase {
}
$this->assertIdentical($filenames, $recorded_filenames, 'The uploaded files are present in the same order after the upgrade.');
}
+ // Test for the file with repeating basename to only have the streaming
+ // path replaced.
+ $node = node_load(40, 53);
+ $repeated_basename_file = $node->upload[LANGUAGE_NONE][4];
+ $this->assertEqual($repeated_basename_file['uri'], 'private://drupal-6/file/directory/path/crazy-basename.png', "The file with the repeated basename path only had the stream portion replaced");
+
// Make sure the file settings were properly migrated.
$d6_file_directory_temp = '/drupal-6/file/directory/temp';
$d6_file_directory_path = '/drupal-6/file/directory/path';