Skip to content

Commit ff5de32

Browse files
author
Govind Sharma
authored
Update ViewTest.php
1 parent 0e78fe4 commit ff5de32

File tree

1 file changed

+7
-1
lines changed
  • app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Creditmemo

1 file changed

+7
-1
lines changed

app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Creditmemo/ViewTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ protected function setUp(): void
216216
$this->resultForwardMock = $this->getMockBuilder(Forward::class)
217217
->disableOriginalConstructor()
218218
->getMock();
219-
219+
$this->resultRedirectFactoryMock = $this->getMockBuilder(RedirectFactory::class)
220+
->disableOriginalConstructor()
221+
->setMethods(['create'])
222+
->getMock();
223+
$this->resultRedirectMock = $this->getMockBuilder(Redirect::class)
224+
->disableOriginalConstructor()
225+
->getMock();
220226
$this->contextMock->expects($this->any())
221227
->method('getSession')
222228
->willReturn($this->sessionMock);

0 commit comments

Comments
 (0)