summaryrefslogtreecommitdiffstats
path: root/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php')
-rw-r--r--core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php32
1 files changed, 8 insertions, 24 deletions
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 854c128..f1af767 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 @@ class TextFieldRdfaTest extends FieldRdfaTestBase {
}
/**
- * 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));
}
}