summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/trigger/trigger.test')
-rw-r--r--modules/trigger/trigger.test4
1 files changed, 2 insertions, 2 deletions
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
+}