diff --git a/module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/SetupThemeResourcesTest.php b/module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/SetupThemeResourcesTest.php index 11deb4d2243..d09c48a9a88 100644 --- a/module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/SetupThemeResourcesTest.php +++ b/module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/SetupThemeResourcesTest.php @@ -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; }