minor #33864 Replace deprecated calls in tests (jakzal)

This PR was merged into the 4.3 branch.

Discussion
----------

Replace deprecated calls in tests

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

5aee2f140b Replace deprecated calls in tests
This commit is contained in:
Nicolas Grekas 2019-10-04 23:15:56 +02:00
commit f2056e88ba
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class SwitchUserListenerTest extends TestCase
->method('checkPostAuth')->with($user);
$listener = new SwitchUserListener($this->tokenStorage, $this->userProvider, $this->userChecker, 'provider123', $this->accessDecisionManager);
$listener->handle($this->event);
$listener($this->event);
$this->assertSame([], $this->request->query->all());
$this->assertSame('', $this->request->server->get('QUERY_STRING'));