Commit 494cf588 authored by jhodgdon's avatar jhodgdon

Issue #1418980 by batigolix: Fix up test docs for RDF module

parent 3400bc2c
......@@ -79,8 +79,10 @@ public function testNumberOfCommentsRdfaMarkup() {
}
/**
* Tests the presence of the RDFa markup for the title, date and author and
* homepage on registered users and anonymous comments.
* Tests if RDFa markup for meta information is present in comments.
*
* Tests presence of RDFa markup for the title, date and author and homepage
* on comments from registered and anonymous users.
*/
public function testCommentRdfaMarkup() {
......
......@@ -30,7 +30,7 @@ public static function getInfo() {
}
/**
* Tests getting RDF namesapces.
* Tests getting RDF namespaces.
*/
function testGetRdfNamespaces() {
// Get all RDF namespaces.
......
......@@ -50,8 +50,10 @@ function testAttributesInMarkup1() {
}
/**
* Create a content type and a node of type test_bundle_hook_install and test
* whether the RDF mapping defined in rdf_test.install is used.
* Tests if RDF mapping defined in rdf_test.install is used.
*
* Creates a content type and a node of type test_bundle_hook_install and
* tests whether the RDF mapping defined in rdf_test.install is used.
*/
function testAttributesInMarkup2() {
$type = $this->drupalCreateContentType(array('type' => 'test_bundle_hook_install'));
......@@ -68,8 +70,10 @@ function testAttributesInMarkup2() {
}
/**
* Create a random content type and node and ensure the default mapping for
* node is used.
* Tests if the default mapping for a node is being used.
*
* Creates a random content type and node and ensures the default mapping for
* the node is being used.
*/
function testAttributesInMarkup3() {
$type = $this->drupalCreateContentType();
......@@ -87,7 +91,10 @@ function testAttributesInMarkup3() {
}
/**
* Create a random user and ensure the default mapping for user is used.
* Tests if default mapping for user is being used.
*
* Creates a random user and ensures the default mapping for the user is
* being used.
*/
function testUserAttributesInMarkup() {
// Create two users, one with access to user profiles.
......
......@@ -92,6 +92,8 @@ function testDrupalRdfaAttributes() {
}
/**
* Tests if file fields in teasers have correct resources.
*
* Ensure that file fields have the correct resource as the object in RDFa
* when displayed as a teaser.
*/
......
......@@ -45,7 +45,9 @@ function setUp() {
}
/**
* Create nodes as both admin and anonymous user and test for correct RDFa
* Tests for correct attributes on tracker page.
*
* Creates nodes as both admin and anonymous user and tests for correct RDFa
* markup on the tracker page for those nodes and their comments.
*/
function testAttributesInTracker() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment