summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-15 15:12:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-15 15:12:22 +0000
commitd89f0464264cb227a917a64660466099d93958aa (patch)
tree694f264cb9510118717d154b15a8d031d23ca982 /modules/comment/comment.test
parent4c9fd48cedb88ca3e4e1e19ef862feadb9e244d3 (diff)
downloadbrdo-d89f0464264cb227a917a64660466099d93958aa.tar.gz
brdo-d89f0464264cb227a917a64660466099d93958aa.tar.bz2
- Patch #685034 by linclark: the number of comments in RDFa should be typed.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index bf6c68ea8..4f27a460a 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -1103,13 +1103,13 @@ class CommentRdfaTestCase extends CommentHelperCase {
// Tests number of comments in teaser view.
$this->drupalGet('node');
- $comment_count_teaser = $this->xpath("//div[contains(@typeof, 'sioc:Item')]//li[contains(@class, 'comment_comments')]/a[contains(@property, 'sioc:num_replies') and contains(@content, '2')]");
+ $comment_count_teaser = $this->xpath("//div[contains(@typeof, 'sioc:Item')]//li[contains(@class, 'comment_comments')]/a[contains(@property, 'sioc:num_replies') and contains(@content, '2') and @datatype='xsd:integer']");
$this->assertTrue(!empty($comment_count_teaser), t('RDFa markup for the number of comments found on teaser view.'));
// Tests number of comments in full node view.
$this->drupalGet('node/' . $this->node1->nid);
$node_url = url('node/' . $this->node1->nid);
- $comment_count_teaser = $this->xpath("/html/head/meta[@about='$node_url' and @property='sioc:num_replies' and @content='2']");
+ $comment_count_teaser = $this->xpath("/html/head/meta[@about='$node_url' and @property='sioc:num_replies' and @content='2' and @datatype='xsd:integer']");
$this->assertTrue(!empty($comment_count_teaser), t('RDFa markup for the number of comments found on full node view.'));
}