fix test
This commit is contained in:
parent
5ec6ff378b
commit
4bffa04271
@ -51,6 +51,7 @@ class AppVariableTest extends TestCase
|
|||||||
public function testGetSession()
|
public function testGetSession()
|
||||||
{
|
{
|
||||||
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();
|
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();
|
||||||
|
$request->method('hasSession')->willReturn(true);
|
||||||
$request->method('getSession')->willReturn($session = new Session());
|
$request->method('getSession')->willReturn($session = new Session());
|
||||||
|
|
||||||
$this->setRequestStack($request);
|
$this->setRequestStack($request);
|
||||||
@ -255,6 +256,7 @@ class AppVariableTest extends TestCase
|
|||||||
$session->method('getFlashBag')->willReturn($flashBag);
|
$session->method('getFlashBag')->willReturn($flashBag);
|
||||||
|
|
||||||
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();
|
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();
|
||||||
|
$request->method('hasSession')->willReturn(true);
|
||||||
$request->method('getSession')->willReturn($session);
|
$request->method('getSession')->willReturn($session);
|
||||||
$this->setRequestStack($request);
|
$this->setRequestStack($request);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user