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

Added test.

parent af24ded7
No related merge requests found
......@@ -56,4 +56,16 @@ class SearchSpecsReaderTest extends \VuFindTest\Unit\TestCase
&& !empty($specs['Author']['DismaxFields'])
);
}
/**
* Test loading of a non-existent YAML file.
*
* @return void
*/
public function testMissingFileRead()
{
$reader = $this->getServiceManager()->get('VuFind\SearchSpecsReader');
$specs = $reader->get('notreallyasearchspecs.yaml');
$this->assertEquals(array(), $specs);
}
}
\ No newline at end of file
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