Closed (duplicate)
Project:
SimpleTest
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2009 at 14:39 UTC
Updated:
7 Oct 2010 at 23:12 UTC
Jump to comment: Most recent file
function drupalGetNodeByTitle($title) {
$nodes = node_load_multiple(array(), array('title' => $title));
which, naturally, doesn't exist in Drupal 6. Small switch to node_load() would be the fix.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | simpletest_drupalGetNodeByTitle.patch | 1.05 KB | boombatower |
Comments
Comment #1
boombatower commentedPlease confirm this fixes the problem for you.
Comment #2
morbus iffYep, that's exactly the change I'm using locally.
Comment #3
boombatower commentedCommitted to DRUPAL-6--2.
Comment #5
hass commentedTest robot on d.o is broken. See http://drupal.org/node/903318.
I figured out that drupalGetNodeByTitle() seems not loading the node object! It only returns "1". Example code below:
Comment #6
boombatower commentedShould be included in #890440: Backport latest SimpleTest code from D7.