Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 31, 2025
1 parent 2621205 commit a8f5058
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ protected function getMockHeadMeta()
*/
protected function getMockHeadLink()
{
$mock = $this->getMockBuilder(\VuFindTheme\View\Helper\HeadLink::class)
->disableOriginalConstructor()
->getMock();
$mock->expects($this->any())->method('__invoke')->will($this->returnValue($mock));
$mock = $this->createMock(\Laminas\View\Helper\HeadLink::class);
$mock->expects($this->any())->method('__invoke')->willReturn($mock);
return $mock;
}

Expand Down

0 comments on commit a8f5058

Please sign in to comment.