summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-11 00:03:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-11 00:03:42 +0000
commit7cc3d92d65cccf7e09943312b7fa28642372d4c9 (patch)
tree0bc09ca5d76dc48f67935304bb1a9c24c0ea8b73 /modules/file
parent3b21e82a3770c61ad64062204c33911c42e19d7e (diff)
downloadbrdo-7cc3d92d65cccf7e09943312b7fa28642372d4c9.tar.gz
brdo-7cc3d92d65cccf7e09943312b7fa28642372d4c9.tar.bz2
#616240 follow-up by yched, dereine, marvil07: Make Field UI screens extensible from contrib - part II.
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/tests/file.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/file/tests/file.test b/modules/file/tests/file.test
index 278aed332..8330e8fa6 100644
--- a/modules/file/tests/file.test
+++ b/modules/file/tests/file.test
@@ -316,10 +316,10 @@ class FileFieldWidgetTestCase extends FileFieldTestCase {
// Create a new field.
$edit = array(
- '_add_new_field[label]' => $label = $this->randomName(),
- '_add_new_field[field_name]' => $name = strtolower($this->randomName()),
- '_add_new_field[type]' => 'file',
- '_add_new_field[widget_type]' => 'file_generic',
+ 'fields[_add_new_field][label]' => $label = $this->randomName(),
+ 'fields[_add_new_field][field_name]' => $name = strtolower($this->randomName()),
+ 'fields[_add_new_field][type]' => 'file',
+ 'fields[_add_new_field][widget_type]' => 'file_generic',
);
$this->drupalPost('admin/structure/types/manage/article/comment/fields', $edit, t('Save'));
$edit = array('field[settings][uri_scheme]' => 'private');
@@ -347,7 +347,7 @@ class FileFieldWidgetTestCase extends FileFieldTestCase {
// Log in as normal user.
$this->drupalLogin($user);
-
+
$comment = comment_load($cid);
$comment_file = (object) $comment->{'field_' . $name}[LANGUAGE_NONE][0];
$this->assertFileExists($comment_file, t('New file saved to disk on node creation.'));
@@ -356,7 +356,7 @@ class FileFieldWidgetTestCase extends FileFieldTestCase {
$this->assertNotEqual($url, NULL, t('Confirmed that the URL is valid'));
$this->drupalGet(file_create_url($comment_file->uri));
$this->assertResponse(200, t('Confirmed that the generated URL is correct by downloading the shipped file.'));
-
+
// Test anonymous file download.
$this->drupalLogout();
$this->drupalGet(file_create_url($comment_file->uri));