Skip to content
Snippets Groups Projects
Commit bcfa5674 authored by Demian Katz's avatar Demian Katz
Browse files

Added test coverage of new feature.

parent 73fea9a4
No related merge requests found
...@@ -225,6 +225,24 @@ class ExportTest extends \PHPUnit_Framework_TestCase ...@@ -225,6 +225,24 @@ class ExportTest extends \PHPUnit_Framework_TestCase
); );
} }
/**
* Test getLabelForFormat
*
* @ return void
*/
public function testGetLabel()
{
$config = [
'foo' => [],
'bar' => ['label' => 'baz'],
];
$export = $this->getExport(array(), $config);
// test "use section label as default"
$this->assertEquals('foo', $export->getLabelForFormat('foo'));
// test "override with label setting"
$this->assertEquals('baz', $export->getLabelForFormat('bar'));
}
/** /**
* Get a fake MARCXML record * Get a fake MARCXML record
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment