diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
commit | ff301288f2ea06d76606c05bccac5957e2873a94 (patch) | |
tree | b46d9d7e56612945850281a136161967ba8bc5f2 /modules/rdf | |
parent | de33f74b4040cc3f7880269152b277d90b081cc8 (diff) | |
download | brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.gz brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.bz2 |
- Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3.
Diffstat (limited to 'modules/rdf')
-rw-r--r-- | modules/rdf/rdf.test | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/modules/rdf/rdf.test b/modules/rdf/rdf.test index f6b28c27a..876c07e71 100644 --- a/modules/rdf/rdf.test +++ b/modules/rdf/rdf.test @@ -246,7 +246,7 @@ class RdfCrudTestCase extends DrupalWebTestCase { } } -class RdfMappingDefinitionTestCase extends DrupalWebTestCase { +class RdfMappingDefinitionTestCase extends TaxonomyWebTestCase { public static function getInfo() { return array( 'name' => 'RDF mapping definition functionality', @@ -356,8 +356,8 @@ class RdfMappingDefinitionTestCase extends DrupalWebTestCase { * Creates a random term and ensures the right RDFa markup is used. */ function testTaxonomyTermRdfaAttributes() { - $vocabulary = TaxonomyWebTestCase::createVocabulary(); - $term = TaxonomyWebTestCase::createTerm($vocabulary); + $vocabulary = $this->createVocabulary(); + $term = $this->createTerm($vocabulary); // Views the term and checks that the RDFa markup is correct. $this->drupalGet('taxonomy/term/' . $term->tid); @@ -394,7 +394,11 @@ class RdfCommentAttributesTestCase extends DrupalWebTestCase { public function testAttributesInTeaser() { $node = $this->drupalCreateNode(array('type' => 'article', 'uid' => 1, 'promote' => 1)); - CommentHelperCase::postComment($node, $this->randomName(), $this->randomName()); + $comment = array( + 'subject' => $this->randomName(), + 'comment_body[' . LANGUAGE_NONE . '][0][value]' => $this->randomName(), + ); + $this->drupalPost('comment/reply/' . $node->nid, $comment, t('Save')); $this->drupalGet(''); $comment_count_link = $this->xpath('//div[@about=:url]//a[contains(@property, "sioc:num_replies") and @rel=""]', array(':url' => url("node/$node->nid"))); $this->assertTrue(!empty($comment_count_link), t('Empty rel attribute found in comment count link.')); @@ -491,7 +495,11 @@ class RdfTrackerAttributesTestCase extends DrupalWebTestCase { // Tests that the appropriate RDFa markup to annotate the latest activity // date has been added to the tracker output after a comment is posted. - CommentHelperCase::postComment($node, $this->randomName(), $this->randomName()); + $comment = array( + 'subject' => $this->randomName(), + 'comment_body[' . LANGUAGE_NONE . '][0][value]' => $this->randomName(), + ); + $this->drupalPost('comment/reply/' . $node->nid, $comment, t('Save')); $this->drupalGet('tracker'); // Tests whether the property has been set for number of comments. |