Skip to content

Commit

Permalink
Remove usage of MockBuilder->onlyMethods() due to usage of PHPUNIT 7.…
Browse files Browse the repository at this point in the history
…5 in TYPO3 9.5 test run.
  • Loading branch information
haogatyp committed Feb 16, 2023
1 parent 64ee2ae commit ab4f21a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {});'
Expand Down

0 comments on commit ab4f21a

Please sign in to comment.