Skip to content

Commit 2e2677a

Browse files
Merge branch '6.2' into 6.3
* 6.2: [Security] remove deprecated conditions in supports and authenticate methods from AccessListener class [Tests] Replace `setMethods()` by `onlyMethods()` and `addMethods()`
2 parents c0b83ba + 6c92840 commit 2e2677a

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)