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 ed09d153ec136e7df83e1d39dbc1f60efe999ded..37424a84a2ac6fa0fcc8ab3f457b14bc9664a0d9 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);