diff --git a/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/WorldCat/BackendTest.php b/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/WorldCat/BackendTest.php index 76043f2f900ce4f1e1b4d94a0df6aeb2e3d55d62..86624a604daffb4363e7599c59e10c0258d5d4a1 100644 --- a/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/WorldCat/BackendTest.php +++ b/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/WorldCat/BackendTest.php @@ -109,6 +109,20 @@ class BackendTest extends PHPUnit_Framework_TestCase $this->assertEquals($qb, $back->getQueryBuilder()); } + /** + * Test setting a custom record collection factory. + * + * @return void + */ + public function testConstructorSetters() + { + $fact = $this->getMock('VuFindSearch\Response\RecordCollectionFactoryInterface'); + $conn = $this->getConnectorMock(); + $back = new Backend($conn, $fact); + $this->assertEquals($fact, $back->getRecordCollectionFactory()); + $this->assertEquals($conn, $back->getConnector()); + } + /// Internal API /**