Skip to content

Commit be91c94

Browse files
committed
Merge branch 'develop' into AC-13039
2 parents 214dd5e + e9d6e33 commit be91c94

File tree

61 files changed

+567
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+567
-151
lines changed

Inventory/Test/Unit/Model/SourceItem/Validator/SkuValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function setUp(): void
6161
/**
6262
* @return array
6363
*/
64-
public function sourceDataProvider(): array
64+
public static function sourceDataProvider(): array
6565
{
6666
return [
6767
[

InventoryAdminUi/Test/Mftf/Test/AddProductToCartAfterCancelOrderConfigurableProductCustomStockTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<fillField selector="{{StorefrontProductPageSection.qtyInput}}" userInput="{{101ProductQty.value}}" stepKey="fillQuantity"/>
116116
<click selector="{{StorefrontProductPageSection.addToCartBtn}}" stepKey="addToCart"/>
117117
<waitForElementVisible selector="{{StorefrontProductPageSection.errorMsg}}" stepKey="waitForErrorMessage"/>
118-
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="The requested qty is not available" stepKey="verifyErrorMessage"/>
118+
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="Not enough items for sale" stepKey="verifyErrorMessage"/>
119119
<!--Add configurable to cart with proper quantity-->
120120
<actionGroup ref="StorefrontAddConfigurableProductToTheCartActionGroup" stepKey="addConfigurableProductToCartWithProperQty">
121121
<argument name="urlKey" value="$configurableProduct.custom_attributes[url_key]$" />

InventoryAdminUi/Test/Mftf/Test/AddProductToCartAfterCancelOrderDownloadableProductCustomStockTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<fillField selector="{{StorefrontProductPageSection.qtyInput}}" userInput="{{101ProductQty.value}}" stepKey="fillQuantity"/>
8484
<click selector="{{StorefrontProductPageSection.addToCartBtn}}" stepKey="addToCart"/>
8585
<waitForElementVisible selector="{{StorefrontProductPageSection.errorMsg}}" stepKey="waitForErrorMessage"/>
86-
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="The requested qty is not available" stepKey="verifyErrorMessage"/>
86+
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="Not enough items for sale" stepKey="verifyErrorMessage"/>
8787
<!--Add downloadable product with proper quantity.-->
8888
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addProductToCartWithProperQty">
8989
<argument name="productQty" value="{{defaultProductQty.value}}"/>

InventoryAdminUi/Test/Mftf/Test/AddProductToCartAfterCancelOrderSimpleProductCustomStockTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<fillField selector="{{StorefrontProductPageSection.qtyInput}}" userInput="{{101ProductQty.value}}" stepKey="fillQuantity"/>
8888
<click selector="{{StorefrontProductPageSection.addToCartBtn}}" stepKey="addToCart"/>
8989
<waitForElementVisible selector="{{StorefrontProductPageSection.errorMsg}}" stepKey="waitForErrorMessage"/>
90-
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="The requested qty is not available" stepKey="verifyErrorMessage"/>
90+
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="Not enough items for sale" stepKey="verifyErrorMessage"/>
9191
<!--Add simple product with proper quantity.-->
9292
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addProductToCartWithProperQty">
9393
<argument name="productQty" value="{{defaultProductQty.value}}"/>

InventoryAdminUi/Test/Mftf/Test/AddProductToCartAfterOrderPlacementSimpleProductCustomStockTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<fillField selector="{{StorefrontProductPageSection.qtyInput}}" userInput="{{defaultProductQty.value}}" stepKey="fillQuantity"/>
8080
<click selector="{{StorefrontProductPageSection.addToCartBtn}}" stepKey="addToCart"/>
8181
<waitForElementVisible selector="{{StorefrontProductPageSection.errorMsg}}" stepKey="waitForErrorMessage"/>
82-
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="The requested qty is not available" stepKey="verifyErrorMessage"/>
82+
<see selector="{{StorefrontProductPageSection.errorMsg}}" userInput="Not enough items for sale" stepKey="verifyErrorMessage"/>
8383
<!--Add simple product with proper quantity.-->
8484
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addProductToCartWithProperQty">
8585
<argument name="productQty" value="{{defaultProductQtyBoughtWith5Pieces.value}}"/>

InventoryCache/Test/Unit/Model/CacheFlushProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function testProcess(
125125
/**
126126
* @return array
127127
*/
128-
public function processDataProvider(): array
128+
public static function processDataProvider(): array
129129
{
130130
return [
131131
[[1], ['sku1' => [1 => true]], ['sku1' => [1 => true]], [], 0],

InventoryCatalog/Test/Integration/Catalog/Block/Product/ListProduct/SortingTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,24 +218,24 @@ public static function productListWithShowOutOfStockSortOrderDataProvider(): arr
218218
{
219219
return [
220220
'default_order_price_asc' => [
221-
'sort' => 'price',
221+
'sortBy' => 'price',
222222
'direction' => 'ASC',
223-
'expectation' => ['simple_1', 'simple_2', 'configurable2', 'configurable1'],
223+
'expected' => ['simple_1', 'simple_2', 'configurable2', 'configurable1'],
224224
],
225225
'default_order_price_desc' => [
226-
'sort' => 'price',
226+
'sortBy' => 'price',
227227
'direction' => 'DESC',
228-
'expectation' => ['configurable2', 'simple_2', 'simple_1', 'configurable1'],
228+
'expected' => ['configurable2', 'simple_2', 'simple_1', 'configurable1'],
229229
],
230230
'default_order_name_asc' => [
231-
'sort' => 'name',
231+
'sortBy' => 'name',
232232
'direction' => 'ASC',
233-
'expectation' => ['configurable2', 'simple_1', 'simple_2', 'configurable1'],
233+
'expected' => ['configurable2', 'simple_1', 'simple_2', 'configurable1'],
234234
],
235235
'default_order_name_desc' => [
236-
'sort' => 'name',
236+
'sortBy' => 'name',
237237
'direction' => 'DESC',
238-
'expectation' => ['simple_2', 'simple_1', 'configurable2', 'configurable1'],
238+
'expected' => ['simple_2', 'simple_1', 'configurable2', 'configurable1'],
239239
],
240240
];
241241
}

InventoryCatalog/Test/Integration/NegativeMinQtyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testIsProductSalableForRequestedQtyWithBackordersEnabledGlobally
162162
*
163163
* @return array
164164
*/
165-
public function isProductSalableForRequestedQtyWithBackordersEnabledGloballyDataProvider(): array
165+
public static function isProductSalableForRequestedQtyWithBackordersEnabledGloballyDataProvider(): array
166166
{
167167
return [
168168
'salable_qty' => ['SKU-1', 10, 13, true],

InventoryConfigurableProduct/Test/Api/ConfigurableProductShouldBeInStockWhenChildProductInStockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function testUpdateConfigurableStockStatusUsingStockItemAPI(string $fixtu
235235
self::assertEquals(1, $collection->count());
236236
}
237237

238-
public function updateConfigurableStockStatusUsingStockItemAPIDataProvider(): array
238+
public static function updateConfigurableStockStatusUsingStockItemAPIDataProvider(): array
239239
{
240240
return [
241241
['simple'],

InventoryConfigurableProduct/Test/Integration/Plugin/InventoryCatalog/UpdateInventoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testMassUpdateConfigurableProductsStockStatus(array $products):
119119
/**
120120
* @return array[]
121121
*/
122-
public function massUpdateConfigurableProductsStockStatusDataProvider(): array
122+
public static function massUpdateConfigurableProductsStockStatusDataProvider(): array
123123
{
124124
return [
125125
[['sp1', 'sp2', 'sp3', 'sp4', 'cp1', 'cp2']],

0 commit comments

Comments
 (0)