function RdfTrackerAttributesTestCase::testAttributesInTracker in Drupal 7
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 602 - Tests for rdf.module.
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);
}