diff --git a/module/VuFind/tests/integration-tests/src/View/Helper/Root/ResultFeedTest.php b/module/VuFind/tests/integration-tests/src/View/Helper/Root/ResultFeedTest.php index da4533821ba4bf5b3b61428e0545488c968223a4..4dcc545c81a9a36b36e03b60b1cdbf4f905ee0a3 100644 --- a/module/VuFind/tests/integration-tests/src/View/Helper/Root/ResultFeedTest.php +++ b/module/VuFind/tests/integration-tests/src/View/Helper/Root/ResultFeedTest.php @@ -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 ); }