You are here

public function BiblioImportExportWebTestCase::testBiblioNodeExport in Bibliography Module 7

File

tests/BiblioImportExportWebTestCase.test, line 58

Class

BiblioImportExportWebTestCase
Web tests for import/export.

Code

public function testBiblioNodeExport() {
  module_load_include('inc', 'biblio_xml', 'endnote8_export');
  $node = $this
    ->createNode();

  // , 'Export a node in EndNote Tagged format');.
  $this
    ->assertEqual(_biblio_tagged_export($node), $this
    ->getTaggedString());
  $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');

  // , 'Export a node in EndNote XML format');.
  $this
    ->assertEqual($xml, $this
    ->getXMLString());
}