Skip to content

Commit 306d9db

Browse files
committed
MAGETWO-51910: CSRF delete the cart items
1 parent 421b92c commit 306d9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Test/Unit/Controller/Sidebar/RemoveItemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function testExecuteWithException()
240240
public function testExecuteWhenFormKeyValidationFailed()
241241
{
242242
$resultRedirect = $this->getMock(\Magento\Framework\Controller\Result\Redirect::class, [], [], '', false);
243-
$resultRedirect->expects($this->once())->method('setPath')->with('*/*/')->willReturnSelf();
243+
$resultRedirect->expects($this->once())->method('setPath')->with('*/cart/')->willReturnSelf();
244244
$this->resultRedirectFactory->expects($this->once())->method('create')->willReturn($resultRedirect);
245245
$this->getPropertyValue($this->removeItem, 'formKeyValidator')
246246
->expects($this->once())

0 commit comments

Comments
 (0)