The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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
*/
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(
'VuFind\View\Helper\Root\RecordLink', array(),
array(new \VuFind\Record\Router(
......@@ -55,8 +59,15 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase
);
$recordLink->expects($this->any())->method('getUrl')
->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(
'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