function RdfTrackerAttributesTestCase::testAttributesInTracker
Create nodes as both admin and anonymous user and test for correct RDFa markup on the tracker page for those nodes and their comments.
File
-
modules/
rdf/ rdf.test, line 604
Class
Code
function testAttributesInTracker() {
// Create node as anonymous user.
$node_anon = $this->drupalCreateNode(array(
'type' => 'article',
'uid' => 0,
));
// Create node as admin user.
$node_admin = $this->drupalCreateNode(array(
'type' => 'article',
'uid' => 1,
));
// Pass both the anonymously posted node and the administrator posted node
// through to test for the RDF attributes.
$this->_testBasicTrackerRdfaMarkup($node_anon);
$this->_testBasicTrackerRdfaMarkup($node_admin);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.