Skip to content

Commit 9455c2a

Browse files
[Tests] Replace setMethods() by onlyMethods() and addMethods()
1 parent a85747e commit 9455c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/EventListener/VoteListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testOnVoterVote()
2626
$traceableAccessDecisionManager = $this
2727
->getMockBuilder(TraceableAccessDecisionManager::class)
2828
->disableOriginalConstructor()
29-
->setMethods(['addVoterVote'])
29+
->onlyMethods(['addVoterVote'])
3030
->getMock();
3131

3232
$traceableAccessDecisionManager

0 commit comments

Comments
 (0)