function RdfTrackerAttributesTestCase::testAttributesInTracker

7.x rdf.test 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

drupal-7.x/modules/rdf/rdf.test, line 604
Tests for rdf.module.

Class

RdfTrackerAttributesTestCase

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);

}