Skip to content
Snippets Groups Projects
Commit cfb0fee0 authored by Demian Katz's avatar Demian Katz
Browse files

Simplified test.

parent 70b2813a
Branches
Tags
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment