Skip to content

[Security] Make ChainUserProvider::loadUserByIdentifier() to pass all arguments to its providers #58773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 7.4
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed calls to equalTo
  • Loading branch information
jasiolpn committed Nov 6, 2024
commit 64ddeb1dfbe0212d2c121e43cf5e0f325db7dfd7
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ public function testLoadUserByIdentifierPassesAllArgumentsToInternalProviders():
$provider1
->expects($this->once())
->method('loadUserByIdentifier')
->with($this->equalTo('foo'))
->with('foo')
->willThrowException(new UserNotFoundException('not found'))
;

$provider2 = $this->createMock(AttributesBasedUserProviderInterface::class);
$provider2
->expects($this->once())
->method('loadUserByIdentifier')
->with($this->equalTo('foo'), $this->equalTo(['bar' => 'baz']))
->with('foo', ['bar' => 'baz'])
->willReturn($account = $this->createMock(UserInterface::class))
;

Expand Down