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

Fixed broken test.

parent 387c472e
No related merge requests found
...@@ -46,6 +46,10 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase ...@@ -46,6 +46,10 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase
*/ */
protected function getPlugins() protected function getPlugins()
{ {
$currentPath = $this->getMock('VuFind\View\Helper\Root\CurrentPath');
$currentPath->expects($this->any())->method('__invoke')
->will($this->returnValue('/test/path'));
$recordLink = $this->getMock( $recordLink = $this->getMock(
'VuFind\View\Helper\Root\RecordLink', array(), 'VuFind\View\Helper\Root\RecordLink', array(),
array(new \VuFind\Record\Router( array(new \VuFind\Record\Router(
...@@ -55,8 +59,15 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase ...@@ -55,8 +59,15 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase
); );
$recordLink->expects($this->any())->method('getUrl') $recordLink->expects($this->any())->method('getUrl')
->will($this->returnValue('test/url')); ->will($this->returnValue('test/url'));
$serverUrl = $this->getMock('Zend\View\Helper\ServerUrl');
$serverUrl->expects($this->any())->method('__invoke')
->will($this->returnValue('http://server/url'));
return array( return array(
'recordlink' => $recordLink 'currentpath' => $currentPath,
'recordlink' => $recordLink,
'serverurl' => $serverUrl
); );
} }
......
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