From 58b0235a72859aa433d743a9f284504f24664857 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 5 Dec 2008 22:18:46 +0000 Subject: - Patch #324313 by catch et al: load multiple nodes and terms at once. --- modules/trigger/trigger.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/trigger/trigger.test') diff --git a/modules/trigger/trigger.test b/modules/trigger/trigger.test index fab53e5f4..e11429306 100644 --- a/modules/trigger/trigger.test +++ b/modules/trigger/trigger.test @@ -44,7 +44,7 @@ class TriggerContentTestCase extends DrupalWebTestCase { // Make sure the text we want appears. $this->assertRaw(t('!post %title has been created.', array ('!post' => 'Page', '%title' => $edit['title'])), t('Make sure the page has actually been created')); // Action should have been fired. - $loaded_node = node_load(array('title' => $edit['title']), NULL, TRUE); + $loaded_node = $this->drupalGetNodeByTitle($edit['title']);; $this->assertTrue($loaded_node->$info['property'] == $info['expected'], t('Make sure the @action action fired.', array('@action' => $info['name']))); // Leave action assigned for next test @@ -108,4 +108,4 @@ class TriggerContentTestCase extends DrupalWebTestCase { ); return $info[$action]; } -} \ No newline at end of file +} -- cgit v1.2.3