summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/translation/translation.test b/modules/translation/translation.test
index e7a97790a..d8dd43b31 100644
--- a/modules/translation/translation.test
+++ b/modules/translation/translation.test
@@ -117,7 +117,7 @@ class TranslationTestCase extends DrupalWebTestCase {
$this->assertRaw(t('Page %title has been created.', array('%title' => $edit['title'])), t('Page created.'));
// Check to make sure the node was created.
- $node = node_load(array('title' => $edit['title']));
+ $node = $this->drupalGetNodeByTitle($edit['title']);
$this->assertTrue($node, t('Node found in database.'));
return $node;
@@ -141,7 +141,7 @@ class TranslationTestCase extends DrupalWebTestCase {
$this->assertRaw(t('Page %title has been created.', array('%title' => $edit['title'])), t('Translation created.'));
// Check to make sure that translation was successfull.
- $node = node_load(array('title' => $edit['title']));
+ $node = $this->drupalGetNodeByTitle($edit['title']);
$this->assertTrue($node, t('Node found in database.'));
return $node;