Skip to content

Commit 2afe92f

Browse files
committed
Fix static test
1 parent 643b8f0 commit 2afe92f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/code/Magento/Quote/Model/Quote/Item.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Item extends \Magento\Quote\Model\Quote\Item\AbstractItem implements \Mage
139139
protected $_optionsByCode = [];
140140

141141
/**
142-
* Not Represent options
142+
* Not Represent option
143143
*
144144
* @var array
145145
*/
@@ -148,6 +148,7 @@ class Item extends \Magento\Quote\Model\Quote\Item\AbstractItem implements \Mage
148148
/**
149149
* Flag stating that options were successfully saved
150150
*
151+
* @var bool
151152
*/
152153
protected $_flagOptionsSaved;
153154

@@ -176,6 +177,7 @@ class Item extends \Magento\Quote\Model\Quote\Item\AbstractItem implements \Mage
176177
/**
177178
* @var \Magento\CatalogInventory\Api\StockRegistryInterface
178179
* @deprecated 101.0.0
180+
* @see nothing
179181
*/
180182
protected $stockRegistry;
181183

app/code/Magento/QuoteGraphQl/Model/CartItem/ProductStock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(
5353
* @param Item $cartItem
5454
* @return bool
5555
*/
56-
public function getProductAvailability($cartItem): bool
56+
public function isProductAvailable($cartItem): bool
5757
{
5858
$requestedQty = 0;
5959
$previousQty = 0;

app/code/Magento/QuoteGraphQl/Model/Resolver/CheckProductStockAvailability.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
5757
/** @var Item $cartItem */
5858
$cartItem = $value['model'];
5959

60-
return $this->productStock->getProductAvailability($cartItem) ? "available" : "unavailable";
60+
return $this->productStock->isProductAvailable($cartItem) ? "available" : "unavailable";
6161
}
6262
}

0 commit comments

Comments
 (0)