/** * 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()); }