function BiblioImportExportUnitTest::testBiblioNodeExport in Bibliography Module 6.2
Same name and namespace in other branches
- 7.2 tests/import.export.test \BiblioImportExportUnitTest::testBiblioNodeExport()
File
- tests/
import.export.test, line 42
Class
Code
function testBiblioNodeExport() {
// module_load_include('inc', 'biblio', 'endnote8_export');
$node = $this
->createNode();
$this
->assertEqual(_biblio_tagged_export($node), $this
->getTaggedString());
//, 'Export a node in EndNote Tagged format');
$this
->assertEqual(_biblio_bibtex_export($node), $this
->getBibTexString(), 'Export a node in BibTex format');
$xml = _endnote8_XML_export('', 'begin');
$xml .= _endnote8_XML_export($node);
$xml .= _endnote8_XML_export('', 'end');
$this
->assertEqual($xml, $this
->getXMLString(), 'Export a node in EndNote XML format');
}