mock the proper method

This commit is contained in:
Christian Flothmann 2016-04-05 20:28:19 +02:00
parent 034f47635c
commit 4b78d03379
1 changed files with 7 additions and 1 deletions

View File

@ -187,9 +187,15 @@ class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase
$this
->request
->expects($this->any())
->method('all')
->method('get')
->with('_switch_user')
->willReturn('_exit');
$this
->request
->query
->expects($this->any())
->method('all')
->will($this->returnValue(array()));
$this
->request
->expects($this->any())