diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-21 15:25:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-21 15:25:13 +0000 |
commit | 53fc09a555bf8d903002bf4770f44fc178020c83 (patch) | |
tree | 53a500d148c40a8eb192d8ce345885d067567e1e /modules | |
parent | 1f1734af0159d43bbc521a6efc58d529a6a8f525 (diff) | |
download | brdo-53fc09a555bf8d903002bf4770f44fc178020c83.tar.gz brdo-53fc09a555bf8d903002bf4770f44fc178020c83.tar.bz2 |
- Patch #555458 by deekayen: convert stray sprinf() syntax query to dbtng.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index 315d7c1b9..b567ba77d 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -701,7 +701,7 @@ class NodeAccessRecordsUnitTest extends DrupalWebTestCase { $this->assertTrue(node_load($node3->nid), t('Unpromoted, unpublished page node created.')); // Check to see if grants added by node_test_node_access_records made it in. - $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = %d', $node3->nid)->fetchAll(); + $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', array(':nid' => $node3->nid))->fetchAll(); $this->assertEqual(count($records), 1, t('Returned the correct number of rows.')); $this->assertEqual($records[0]->realm, 'test_page_realm', t('Grant with page_realm acquired for node without alteration.')); $this->assertEqual($records[0]->gid, 1, t('Grant with gid = 1 acquired for node without alteration.')); |