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/path/path.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/path/path.test') diff --git a/modules/path/path.test b/modules/path/path.test index 40023996d..6479abc03 100644 --- a/modules/path/path.test +++ b/modules/path/path.test @@ -131,7 +131,7 @@ class PathTestCase extends DrupalWebTestCase { $this->drupalPost('node/add/page', $edit, t('Save')); // Check to make sure the node was created. - $node = node_load(array('title' => $edit['title'])); + $node = $this->drupalGetNodeByTitle($edit['title']); $this->assertNotNull(($node === FALSE ? NULL : $node), 'Node found in database. %s'); @@ -188,7 +188,7 @@ class PathLanguageTestCase extends DrupalWebTestCase { $this->drupalPost('node/add/page', $edit, t('Save')); // Check to make sure the node was created. - $english_node = node_load(array('title' => $edit['title'])); + $english_node = $this->drupalGetNodeByTitle($edit['title']); $this->assertTrue(($english_node), 'Node found in database.'); // Confirm that the alias works. @@ -209,7 +209,7 @@ class PathLanguageTestCase extends DrupalWebTestCase { // Ensure the node was created. // Check to make sure the node was created. - $french_node = node_load(array('title' => $edit['title'])); + $french_node = $this->drupalGetNodeByTitle($edit['title']); $this->assertTrue(($french_node), 'Node found in database.'); // Confirm that the alias works. -- cgit v1.2.3