You are here

function BiblioImportExportUnitTest::testBiblioNodeExport in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 tests/import.export.test \BiblioImportExportUnitTest::testBiblioNodeExport()

File

tests/import.export.test, line 34

Class

BiblioImportExportUnitTest

Code

function testBiblioNodeExport() {
  module_load_include('inc', 'biblio_xml', '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');
}