File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,6 @@ protected function filterTierPrices(array $priceList)
217
217
unset($ priceList [$ priceKey ]);
218
218
continue ;
219
219
}
220
- $ minPrice = $ price ['price ' ];
221
220
if (isset ($ price ['price_qty ' ]) && $ price ['price_qty ' ] == 1 ) {
222
221
unset($ priceList [$ priceKey ]);
223
222
continue ;
@@ -240,6 +239,7 @@ protected function filterTierPrices(array $priceList)
240
239
} else {
241
240
$ qtyCache [$ price ['price_qty ' ]] = $ priceKey ;
242
241
}
242
+ $ minPrice = $ price ['price ' ];
243
243
}
244
244
return array_values ($ priceList );
245
245
}
Original file line number Diff line number Diff line change 84
84
<expectedResult type =" string" >Buy {{tierPriceOnDefault.qty_0}} for ${{tierPriceOnDefault.price_0}} each and save 100%</expectedResult >
85
85
<actualResult type =" variable" >firstTierPriceText</actualResult >
86
86
</assertEquals >
87
- <grabTextFrom selector =" {{StorefrontProductInfoMainSection.productTierPriceByForTextLabel('2', tierPriceOnDefault.qty_1)}}" stepKey =" secondTierPriceText" />
88
- <assertEquals stepKey =" assertTierPriceTextOnProductPage2" >
89
- <expectedResult type =" string" >Buy {{tierPriceOnDefault.qty_1}} for ${{tierPriceOnDefault.price_1}} each and save 100%</expectedResult >
90
- <actualResult type =" variable" >secondTierPriceText</actualResult >
91
- </assertEquals >
87
+ <dontSeeElement selector =" {{StorefrontProductInfoMainSection.productTierPriceByForTextLabel('2', tierPriceOnDefault.qty_1)}}" stepKey =" secondTierPriceText" />
88
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" assertTierPriceTextOnProductPage2" />
92
89
93
90
<!-- Verify customer see product out of stock status on product page -->
94
91
<grabTextFrom selector =" {{StorefrontProductInfoMainSection.productStockStatus}}" stepKey =" productStockAvailableStatus" />
Original file line number Diff line number Diff line change 22
22
use Magento \Framework \Pricing \Price \PriceInterface ;
23
23
use Magento \Framework \Pricing \PriceCurrencyInterface ;
24
24
use Magento \Framework \Pricing \PriceInfo \Base ;
25
+ use Magento \Framework \App \Config \ScopeConfigInterface ;
25
26
use PHPUnit \Framework \MockObject \MockObject ;
26
27
use PHPUnit \Framework \TestCase ;
27
28
@@ -113,7 +114,7 @@ protected function setUp(): void
113
114
$ this ->groupManagement = $ this ->getMockForAbstractClass (GroupManagementInterface::class);
114
115
115
116
$ this ->priceCurrencyMock = $ this ->getMockForAbstractClass (PriceCurrencyInterface::class);
116
- $ this ->scopeConfigMock = $ this ->getMockForAbstractClass (\ Magento \ Framework \ App \ Config \ ScopeConfigInterface::class);
117
+ $ this ->scopeConfigMock = $ this ->getMockForAbstractClass (ScopeConfigInterface::class);
117
118
118
119
$ this ->model = new TierPrice (
119
120
$ this ->product ,
You can’t perform that action at this time.
0 commit comments