diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 21:54:01 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 21:54:01 +0000 |
commit | 147bb1389a18eca73015390cc46a5fe03abfcb88 (patch) | |
tree | c5798ac604e5fd2ded01f15db2f0e422b4077abb /modules/file/tests | |
parent | 364238c585cb3c2f64b99a385c577f174cdf1f39 (diff) | |
download | brdo-147bb1389a18eca73015390cc46a5fe03abfcb88.tar.gz brdo-147bb1389a18eca73015390cc46a5fe03abfcb88.tar.bz2 |
#571654 follow-up by chx, peximo, plach, sun, et al:
Roll-back of node titles as fields. The Entity Translation module in
contrib can add this back, but for everyone else it creates a *huge* WTF.
Apologies for how late this is coming, but better now than post-alpha. :\
Diffstat (limited to 'modules/file/tests')
-rw-r--r-- | modules/file/tests/file.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/file/tests/file.test b/modules/file/tests/file.test index 64327b31d..0dc3a1c6b 100644 --- a/modules/file/tests/file.test +++ b/modules/file/tests/file.test @@ -90,7 +90,7 @@ class FileFieldTestCase extends DrupalWebTestCase { function uploadNodeFile($file, $field_name, $nid_or_type, $new_revision = TRUE) { $langcode = LANGUAGE_NONE; $edit = array( - "title[$langcode][0][value]" => $this->randomName(), + "title" => $this->randomName(), 'revision' => (string) (int) $new_revision, ); @@ -347,7 +347,7 @@ class FileFieldValidateTestCase extends FileFieldTestCase { // Try to post a new node without uploading a file. $langcode = LANGUAGE_NONE; - $edit = array("title[$langcode][0][value]" => $this->randomName()); + $edit = array("title" => $this->randomName()); $this->drupalPost('node/add/' . $type_name, $edit, t('Save')); $this->assertRaw(t('!title field is required.', array('!title' => $instance['label'])), t('Node save failed when required file field was empty.')); @@ -364,7 +364,7 @@ class FileFieldValidateTestCase extends FileFieldTestCase { $this->createFileField($field_name, $type_name, array('cardinality' => FIELD_CARDINALITY_UNLIMITED), array('required' => '1')); // Try to post a new node without uploading a file in the multivalue field. - $edit = array("title[$langcode][0][value]" => $this->randomName()); + $edit = array('title' => $this->randomName()); $this->drupalPost('node/add/' . $type_name, $edit, t('Save')); $this->assertRaw(t('!title field is required.', array('!title' => $instance['label'])), t('Node save failed when required multiple value file field was empty.')); |