mock the proper method

This commit is contained in:
Christian Flothmann 2016-04-05 20:28:19 +02:00
parent 034f47635c
commit 4b78d03379

View File

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