$this->assertTrue(!empty($element),t('The same prefix declared in several implementations of hook_rdf_namespaces() is valid as long as all the namespaces are the same.'));
'description'=>'Confirm that the serialization of RDF namespaces via drupal_get_rdf_namespaces() is output and parsed correctly in the XHTML document.',
'group'=>'System',
);
}
functionsetUp(){
parent::setUp('rdf','rdf_test');
}
/**
* Test RDF namespaces.
*/
functiontestGetRdfNamespaces(){
// Fetches the front page and extracts XML namespaces.
$this->drupalGet('');
$xml=newSimpleXMLElement($this->content);
$ns=$xml->getDocNamespaces();
$this->assertEqual($ns['rdfs'],'http://www.w3.org/2000/01/rdf-schema#',t('A prefix declared once is displayed.'));
$this->assertEqual($ns['foaf'],'http://xmlns.com/foaf/0.1/',t('The same prefix declared in several implementations of hook_rdf_namespaces() is valid as long as all the namespaces are the same.'));
$this->assertEqual($ns['foaf1'],'http://xmlns.com/foaf/0.1/',t('Two prefixes can be assigned the same namespace.'));
$this->assertTrue(!isset($ns['dc']),t('A prefix with conflicting namespaces is discarded.'));