Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c7422f

Browse filesBrowse files
authored
[Security] Removed unused argument in Test
After #32998 there was a minor left over, the `testHandleAuthenticationClearsToken` `$tokenClass` argument is no longer used and can be safely removed.
1 parent cac27b2 commit 7c7422f
Copy full SHA for 7c7422f

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/Symfony/Component/Security/Guard/Tests/GuardAuthenticatorHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Guard/Tests/GuardAuthenticatorHandlerTest.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testHandleAuthenticationFailure()
8383
/**
8484
* @dataProvider getTokenClearingTests
8585
*/
86-
public function testHandleAuthenticationClearsToken($tokenClass, $tokenProviderKey, $actualProviderKey)
86+
public function testHandleAuthenticationClearsToken($tokenProviderKey, $actualProviderKey)
8787
{
8888
$this->tokenStorage->expects($this->never())
8989
->method('setToken')
@@ -104,10 +104,10 @@ public function testHandleAuthenticationClearsToken($tokenClass, $tokenProviderK
104104
public function getTokenClearingTests()
105105
{
106106
$tests = [];
107-
// correct token class and matching firewall => clear the token
108-
$tests[] = ['Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken', 'the_firewall_key', 'the_firewall_key'];
109-
$tests[] = ['Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken', 'the_firewall_key', 'different_key'];
110-
$tests[] = ['Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken', 'the_firewall_key', 'the_firewall_key'];
107+
// matching firewall => clear the token
108+
$tests[] = ['the_firewall_key', 'the_firewall_key'];
109+
$tests[] = ['the_firewall_key', 'different_key'];
110+
$tests[] = ['the_firewall_key', 'the_firewall_key'];
111111

112112
return $tests;
113113
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.