Skip to content

Commit c1c4254

Browse files
committed
refac: phpunit setMethods => onlyMethods
1 parent b3d889e commit c1c4254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Unit/Translator/FallbackTranslatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testTranslateWithSubstitutedParameters(): void
4444
$symfonyTranslator = $this->getMockBuilder(TranslatorInterface::class)->getMock();
4545

4646
$translatorService = $this->getMockBuilder(TranslatorService::class)
47-
->setMethods(['translate'])
47+
->onlyMethods(['translate'])
4848
->getMock();
4949
$translatorService->method('translate')->willReturnArgument(0);
5050

0 commit comments

Comments
 (0)