Skip to content

Commit

Permalink
Update ViewTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Govind Sharma authored Oct 10, 2020
1 parent 0e78fe4 commit ff5de32
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ protected function setUp(): void
$this->resultForwardMock = $this->getMockBuilder(Forward::class)
->disableOriginalConstructor()
->getMock();

$this->resultRedirectFactoryMock = $this->getMockBuilder(RedirectFactory::class)
->disableOriginalConstructor()
->setMethods(['create'])
->getMock();
$this->resultRedirectMock = $this->getMockBuilder(Redirect::class)
->disableOriginalConstructor()
->getMock();
$this->contextMock->expects($this->any())
->method('getSession')
->willReturn($this->sessionMock);
Expand Down

0 comments on commit ff5de32

Please sign in to comment.