mock the proper method
This commit is contained in:
parent
034f47635c
commit
4b78d03379
@ -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())
|
||||||
|
Reference in New Issue
Block a user