Skip to content

Commit 6f42a22

Browse files
authored
ENGCOM-4220: Remove unused use statement in Wishlist Allcart Controller #21130
2 parents 82e7cb5 + 86a4db9 commit 6f42a22

File tree

2 files changed

+6
-2
lines changed
  • app/code/Magento/Wishlist/Controller/Index
  • dev/tests/integration/testsuite/Magento/Wishlist/Controller

2 files changed

+6
-2
lines changed

app/code/Magento/Wishlist/Controller/Index/Allcart.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
*/
66
namespace Magento\Wishlist\Controller\Index;
77

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
89
use Magento\Framework\Data\Form\FormKey\Validator;
9-
use Magento\Framework\App\Action;
1010
use Magento\Framework\App\Action\Context;
1111
use Magento\Wishlist\Controller\WishlistProviderInterface;
1212
use Magento\Wishlist\Model\ItemCarrier;
1313
use Magento\Framework\Controller\ResultFactory;
1414

15-
class Allcart extends \Magento\Wishlist\Controller\AbstractIndex
15+
/**
16+
* Action Add All to Cart
17+
*/
18+
class Allcart extends \Magento\Wishlist\Controller\AbstractIndex implements HttpPostActionInterface
1619
{
1720
/**
1821
* @var WishlistProviderInterface

dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function testAddActionProductNameXss()
128128
public function testAllcartAction()
129129
{
130130
$formKey = $this->_objectManager->get(\Magento\Framework\Data\Form\FormKey::class)->getFormKey();
131+
$this->getRequest()->setMethod('POST');
131132
$this->getRequest()->setParam('form_key', $formKey);
132133
$this->dispatch('wishlist/index/allcart');
133134

0 commit comments

Comments
 (0)