summaryrefslogtreecommitdiff
path: root/modules/node/node.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-31 20:05:06 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-31 20:05:06 +0000
commit6fc055ab906c035355bfb789aed404551db5b45a (patch)
treef29650c65f8a7003ce73ebc6047f216f91e14c79 /modules/node/node.test
parente0871ec49bb81adff156d4bc7cf2d9f8b50d04a0 (diff)
downloadbrdo-6fc055ab906c035355bfb789aed404551db5b45a.tar.gz
brdo-6fc055ab906c035355bfb789aed404551db5b45a.tar.bz2
- Patch #730220 by Berdir, aspilicious, Damien Tournoud, pwolanin: improved xpath tests.
Diffstat (limited to 'modules/node/node.test')
-rw-r--r--modules/node/node.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/node/node.test b/modules/node/node.test
index b7ae58a91..a97501f3f 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -1247,8 +1247,7 @@ class NodeTitleTestCase extends DrupalWebTestCase {
$this->assertEqual(current($this->xpath($xpath)), $node->title, 'Node breadcrumb is equal to node title.', 'Node');
// Test node title in comment preview.
- $xpath = '//div[@id="node-'. $node->nid .'"]/h2/a';
- $this->assertEqual(current($this->xpath($xpath)), $node->title, 'Node preview title is equal to node title.', 'Node');
+ $this->assertEqual(current($this->xpath('//div[@id=:id]/h2/a', array(':id' => 'node-' . $node->nid))), $node->title, 'Node preview title is equal to node title.', 'Node');
}
}