From 03072f8dcfd7eb9f1f13c1e5ee002a96e51f943a Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 2 Dec 2013 16:07:24 -0500
Subject: [PATCH] Even more coverage.

---
 .../VuFindTest/Backend/WorldCat/BackendTest.php    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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 76043f2f900..86624a604da 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
 
     /**
-- 
GitLab