summaryrefslogtreecommitdiff
path: root/modules/upload/upload.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
commita938e18a1bd36d887010863817470b690fdbf6f3 (patch)
treeadbc7edb165255a47739fdbe7e0184c241f6340c /modules/upload/upload.test
parentff8b0618f5892d165720453efcd318b0d85a6f8c (diff)
downloadbrdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.gz
brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.bz2
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.
Diffstat (limited to 'modules/upload/upload.test')
-rw-r--r--modules/upload/upload.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.test b/modules/upload/upload.test
index e3fd220da..bf9b22bbb 100644
--- a/modules/upload/upload.test
+++ b/modules/upload/upload.test
@@ -68,7 +68,7 @@ class UploadTestCase extends DrupalWebTestCase {
$this->assertTrue(strpos($teaser, format_plural(2, '1 attachment', '@count attachments')), 'Attachments link found on node teaser.');
// Fetch db record and use fid to rename and delete file.
- $upload = db_fetch_object(db_query('SELECT fid, description FROM {upload} WHERE nid = %d', array($node->nid)));
+ $upload = db_query('SELECT fid, description FROM {upload} WHERE nid = :nid', array(':nid' => $node->nid))->fetchObject();
if ($upload) {
// Rename file.
$edit = array();