8000 minor #13738 [Security] Fix expectation in a test. (jakzal) · symfony/symfony@2d6fbc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d6fbc5

Browse files
committed
minor #13738 [Security] Fix expectation in a test. (jakzal)
This PR was merged into the 2.6 branch. Discussion ---------- [Security] Fix expectation in a test. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is related to #13466, which worked perfectly fine in 2.3. It breaks in 2.6 since we've changed the way we check for master request. Commits ------- 8299a44 [Security] Fix expectation in a test.
2 parents 9e7b109 + 8299a44 commit 2d6fbc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ public function testOnKernelResponseListenerRemovesItself()
220220
->will($this->returnValue(true));
221221

222222
$event->expects($this->any())
223-
->method('getRequestType')
224-
->will($this->returnValue(HttpKernelInterface::MASTER_REQUEST));
223+
->method('isMasterRequest')
224+
->will($this->returnValue(true));
225225
$event->expects($this->any())
226226
->method('getRequest')
227227
->will($this->returnValue($request));

0 commit comments

Comments
 (0)
0