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 Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Wishlist \Controller \Index ;
7
7
8
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
8
9
use Magento \Framework \Data \Form \FormKey \Validator ;
9
- use Magento \Framework \App \Action ;
10
10
use Magento \Framework \App \Action \Context ;
11
11
use Magento \Wishlist \Controller \WishlistProviderInterface ;
12
12
use Magento \Wishlist \Model \ItemCarrier ;
13
13
use Magento \Framework \Controller \ResultFactory ;
14
14
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
16
19
{
17
20
/**
18
21
* @var WishlistProviderInterface
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ public function testAddActionProductNameXss()
128
128
public function testAllcartAction ()
129
129
{
130
130
$ formKey = $ this ->_objectManager ->get (\Magento \Framework \Data \Form \FormKey::class)->getFormKey ();
131
+ $ this ->getRequest ()->setMethod ('POST ' );
131
132
$ this ->getRequest ()->setParam ('form_key ' , $ formKey );
132
133
$ this ->dispatch ('wishlist/index/allcart ' );
133
134
You can’t perform that action at this time.
0 commit comments