/** * Tests that term data is exposed on term page. */ protected function doTermRdfaTests() { // Feed the HTML into the parser. $graph = $this->getRdfGraph($this->term->getSystemPath()); // Term type. $this->assertEqual($graph->type($this->termUri), 'schema:Thing', "Term type was found (schema:Thing) on term page."); // Term name. $expected_value = array('type' => 'literal', 'value' => $this->term->getName(), 'lang' => 'en'); $this->assertTrue($graph->hasProperty($this->termUri, 'http://schema.org/name', $expected_value), "Term name was found (schema:name) on term page."); // @todo Add test for term description once it is a field: // https://drupal.org/node/569434 }