From 494cf588acb31bff10d7e441180e9bdeb6ac89d0 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Wed, 29 Aug 2012 10:44:57 -0700 Subject: [PATCH] Issue #1418980 by batigolix: Fix up test docs for RDF module --- .../Drupal/rdf/Tests/CommentAttributesTest.php | 6 ++++-- .../Drupal/rdf/Tests/GetRdfNamespacesTest.php | 2 +- .../Drupal/rdf/Tests/MappingDefinitionTest.php | 17 ++++++++++++----- .../rdf/lib/Drupal/rdf/Tests/RdfaMarkupTest.php | 2 ++ .../Drupal/rdf/Tests/TrackerAttributesTest.php | 4 +++- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php index e765436b06b..bb712b68039 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php @@ -79,8 +79,10 @@ class CommentAttributesTest extends CommentTestBase { } /** - * 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() { diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php index cca794f4c72..bc78fc2ddfe 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php @@ -30,7 +30,7 @@ class GetRdfNamespacesTest extends WebTestBase { } /** - * Tests getting RDF namesapces. + * Tests getting RDF namespaces. */ function testGetRdfNamespaces() { // Get all RDF namespaces. diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/MappingDefinitionTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/MappingDefinitionTest.php index 252c240f715..9db4a00bce0 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/MappingDefinitionTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/MappingDefinitionTest.php @@ -50,8 +50,10 @@ class MappingDefinitionTest extends TaxonomyTestBase { } /** - * 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 @@ class MappingDefinitionTest extends TaxonomyTestBase { } /** - * 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 @@ class MappingDefinitionTest extends TaxonomyTestBase { } /** - * 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. diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/RdfaMarkupTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/RdfaMarkupTest.php index a7ea4269856..fe89a58235b 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/RdfaMarkupTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/RdfaMarkupTest.php @@ -92,6 +92,8 @@ class RdfaMarkupTest extends WebTestBase { } /** + * 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. */ diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/TrackerAttributesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/TrackerAttributesTest.php index f5e306cdb14..e4f6fe40d62 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/TrackerAttributesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/TrackerAttributesTest.php @@ -45,7 +45,9 @@ class TrackerAttributesTest extends WebTestBase { } /** - * 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() {