Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 300dc26

Browse files
committed
minor symfony#48158 [FrameworkBundle] explicitly disable HTTP method overrides in tests (xabbuh)
This PR was merged into the 6.1 branch. Discussion ---------- [FrameworkBundle] explicitly disable HTTP method overrides in tests | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 6d9b464 explicitly disable HTTP method overrides in tests
2 parents db1cf2b + 6d9b464 commit 300dc26

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,10 @@ public function testLockCanBeDisabled()
433433
$configuration = new Configuration(true);
434434

435435
$config = $processor->processConfiguration($configuration, [
436-
['lock' => ['enabled' => false]],
436+
[
437+
'http_method_override' => false,
438+
'lock' => ['enabled' => false],
439+
],
437440
]);
438441

439442
$this->assertFalse($config['lock']['enabled']);
@@ -448,7 +451,10 @@ public function testEnabledLockNeedsResources()
448451
$this->expectExceptionMessage('Invalid configuration for path "framework.lock": At least one resource must be defined.');
449452

450453
$processor->processConfiguration($configuration, [
451-
['lock' => ['enabled' => true]],
454+
[
455+
'http_method_override' => false,
456+
'lock' => ['enabled' => true],
457+
],
452458
]);
453459
}
454460

0 commit comments

Comments
 (0)