Commit ac0679d7 authored by alexpott's avatar alexpott

Issue #2199845 by kay_v | scor: Merge all assertFormatterRdfa() unit test...

Issue #2199845 by kay_v | scor: Merge all assertFormatterRdfa() unit test calls into one single unit test.
parent c1b72d4e
......@@ -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'));
}
......
......@@ -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));
}
}
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