Skip to content

Commit 6c92840

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Tests] Replace `setMethods()` by `onlyMethods()` and `addMethods()`
2 parents e0e074b + bb39fdd commit 6c92840

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
@@ -60,7 +60,7 @@ public function testExpressionLanguageProviderForwarding()
6060

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

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

0 commit comments

Comments
 (0)