From cfb0fee06a79fd8beea732eae593b444740fee09 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Fri, 6 Mar 2015 13:18:37 -0500
Subject: [PATCH] Simplified test.

---
 .../src/VuFindTest/View/Helper/Root/CartTest.php    | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CartTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CartTest.php
index ed09d153ec1..37424a84a2a 100644
--- a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CartTest.php
+++ b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CartTest.php
@@ -46,16 +46,9 @@ class CartTest extends \PHPUnit_Framework_TestCase
     public function testCart()
     {
         // Create a mock cart object:
-        $mockLoader = $this->getMock(
-            'VuFind\Record\Loader', [],
-            [
-                $this->getMock('VuFindSearch\Service'),
-                $this->getMock('VuFind\RecordDriver\PluginManager')
-            ]
-        );
-        $cart = $this->getMock(
-            'VuFind\Cart', null, [$mockLoader]
-        );
+        $cart = $this->getMockBuilder('VuFind\Cart')
+            ->disableOriginalConstructor()
+            ->getMock();
 
         // Create a helper object:
         $helper = new \VuFind\View\Helper\Root\Cart($cart);
-- 
GitLab