Skip to content

Commit 3ac458b

Browse files
author
Rudolf Vince
committed
Static test fixes
1 parent df2c759 commit 3ac458b

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ class Allcart implements HttpGetActionInterface
3737
*/
3838
private $resultFactory;
3939

40+
/**
41+
* @param ItemCarrier $itemCarrier
42+
* @param RequestInterface $request
43+
* @param ResultFactory $resultFactory
44+
* @param WishlistProvider $wishlistProvider
45+
*/
4046
public function __construct(
4147
ItemCarrier $itemCarrier,
4248
RequestInterface $request,
@@ -52,7 +58,7 @@ public function __construct(
5258
/**
5359
* Add all items from wishlist to shopping cart
5460
*
55-
* @inheritDoc
61+
* {@inheritDoc}
5662
*/
5763
public function execute()
5864
{

app/code/Magento/Wishlist/Controller/Shared/Cart.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ class Cart implements HttpGetActionInterface
7676
*/
7777
private $resultFactory;
7878

79+
/**
80+
* @param CustomerCart $cart
81+
* @param OptionFactory $optionFactory
82+
* @param ItemFactory $itemFactory
83+
* @param CartHelper $cartHelper
84+
* @param Escaper $escaper
85+
* @param RequestInterface $request
86+
* @param RedirectInterface $redirect
87+
* @param MessageManagerInterface $messageManager
88+
* @param ResultFactory $resultFactory
89+
*/
7990
public function __construct(
8091
CustomerCart $cart,
8192
OptionFactory $optionFactory,

app/code/Magento/Wishlist/Test/Unit/Controller/Shared/CartTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class CartTest extends TestCase
8585
/** @var Product|MockObject */
8686
protected $product;
8787

88+
// phpcs:ignore Generic.Files.LineLength.TooLong
8889
protected function setUp()
8990
{
9091
$this->request = $this->getMockBuilder(RequestInterface::class)

0 commit comments

Comments
 (0)