From ab4f21a312d4de981b6774f052547b603ec5fbda Mon Sep 17 00:00:00 2001 From: haogatyp Date: Mon, 6 Feb 2023 19:00:47 +0100 Subject: [PATCH] Remove usage of MockBuilder->onlyMethods() due to usage of PHPUNIT 7.5 in TYPO3 9.5 test run. --- Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php b/Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php index 7f99659c75..a56162a45e 100644 --- a/Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php +++ b/Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php @@ -23,9 +23,7 @@ class JsFooterViewHelperTest extends FunctionalTestCase */ public function pageRendererCallsAddJsFooterInlineCode(): void { - $pageRendererProphecy = $this->getMockBuilder(PageRenderer::class) - ->onlyMethods(['addJsFooterInlineCode']) - ->getMock(); + $pageRendererProphecy = $this->getMockBuilder(PageRenderer::class)->getMock(); $pageRendererProphecy->expects(self::once())->method('addJsFooterInlineCode')->with( 'js-dlf-inline-footer', '$(document).ready(function() {});'