diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php index 00ac9d7c541ef82d1b9ca74de4021ccbde8f49a5..5086bf19d2682908fbb86c2d524da471e34f3579 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php @@ -102,14 +102,10 @@ public function setUp() { /** * Tests the plain formatter. */ - public function testPlainFormatter() { + public function testAllFormatters() { + // Tests the plain formatter. $this->assertFormatterRdfa(array('type' => 'taxonomy_term_reference_plain'), 'http://schema.org/about', array('value' => $this->term->getName(), 'type' => 'literal')); - } - - /** - * Tests the link formatter. - */ - public function testLinkFormatter() { + // Tests the link formatter. $term_uri = $this->getAbsoluteUri($this->term); $this->assertFormatterRdfa(array('type'=>'taxonomy_term_reference_link'), 'http://schema.org/about', array('value' => $term_uri, 'type' => 'uri')); } diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php index 854c128a2711da0c74b3e79d994b804d450d42e8..f1af76775e8c214069ad2a306d258d70925e89c6 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php @@ -63,34 +63,18 @@ public function setUp() { } /** - * Tests the default formatter. - */ - public function testDefaultFormatter() { - $this->assertFormatterRdfa(array('type'=>'text_default'), 'http://schema.org/text', array('value' => $this->testValue)); - } - - /** - * Tests the plain formatter. - */ - public function testPlainFormatter() { - $this->assertFormatterRdfa(array('type'=>'string'), 'http://schema.org/text', array('value' => $this->testValue)); - } - - /** - * Tests the summary formatter. + * Tests all formatters. * * @todo Check for the summary mapping. */ - public function testSummaryFormatter() { + public function testAllFormatters() { + // Tests the default formatter. + $this->assertFormatterRdfa(array('type'=>'text_default'), 'http://schema.org/text', array('value' => $this->testValue)); + // Tests the plain formatter. + $this->assertFormatterRdfa(array('type'=>'string'), 'http://schema.org/text', array('value' => $this->testValue)); + // Tests the summary formatter. $this->assertFormatterRdfa(array('type'=>'text_summary_or_trimmed'), 'http://schema.org/text', array('value' => $this->testValue)); - } - - /** - * Tests the trimmed formatter. - * - * @todo Check for the summary mapping. - */ - public function testTrimmedFormatter() { + // Tests the trimmed formatter. $this->assertFormatterRdfa(array('type'=>'text_trimmed'), 'http://schema.org/text', array('value' => $this->testValue)); } }