You are here

function BiblioCiteProcTestCase::testChicagoAuthorDateStyle in Bibliography Module 7.3

Test the default style of CiteProc.

File

tests/CiteProc.test, line 69

Class

BiblioCiteProcTestCase
Test Render of CiteProc style plugin.

Code

function testChicagoAuthorDateStyle() {
  $biblio = $this->biblio;
  $output = $biblio
    ->getText('citeproc', array(
    'style_name' => 'chicago-author-date',
  ));
  $expected_value = 'Abramowitz, Milton, and Stegun, Irene A. 1964. Handbook Of Mathematical Functions With Formulas, Graphs, And Mathematical Tables. ninth Dover printing, tenth GPO printing. New York: Dover.';
  $this
    ->assertEqual(strip_tags($output), $expected_value);
}