Skip to content

Commit bb39fdd

Browse files
[Tests] Replace setMethods() by onlyMethods() and addMethods()
1 parent 2ab1b77 commit bb39fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Compiler/MergeExtensionConfigurationPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testExpressionLanguageProviderForwarding()
6161

6262
public function testExtensionLoadGetAMergeExtensionConfigurationContainerBuilderInstance()
6363
{
64-
$extension = $this->getMockBuilder(FooExtension::class)->setMethods(['load'])->getMock();
64+
$extension = $this->getMockBuilder(FooExtension::class)->onlyMethods(['load'])->getMock();
6565
$extension->expects($this->once())
6666
->method('load')
6767
->with($this->isType('array'), $this->isInstanceOf(MergeExtensionConfigurationContainerBuilder::class))
@@ -77,7 +77,7 @@ public function testExtensionLoadGetAMergeExtensionConfigurationContainerBuilder
7777

7878
public function testExtensionConfigurationIsTrackedByDefault()
7979
{
80-
$extension = $this->getMockBuilder(FooExtension::class)->setMethods(['getConfiguration'])->getMock();
80+
$extension = $this->getMockBuilder(FooExtension::class)->onlyMethods(['getConfiguration'])->getMock();
8181
$extension->expects($this->exactly(2))
8282
->method('getConfiguration')
8383
->willReturn(new FooConfiguration());

0 commit comments

Comments
 (0)