File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
ConfigurableProduct/Test/Unit/Block/Product/View/Type Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -256,10 +256,10 @@ public function cacheKeyProvider(): array
256
256
*/
257
257
public function testGetCacheKeyInfo (
258
258
array $ expected ,
259
- string $ priceCurrency = null ,
260
- string $ customerGroupId = null
259
+ ? string $ priceCurrency = null ,
260
+ ? int $ customerGroupId = null
261
261
): void {
262
- $ storeMock = $ this ->getMockBuilder (\ Magento \ Store \ Api \ Data \ StoreInterface::class)
262
+ $ storeMock = $ this ->getMockBuilder (StoreInterface::class)
263
263
->setMethods (['getCurrentCurrency ' ])
264
264
->getMockForAbstractClass ();
265
265
$ storeMock ->expects ($ this ->any ())
Original file line number Diff line number Diff line change @@ -181,11 +181,10 @@ public function displayPriceExcludingTax()
181
181
*
182
182
* @return string
183
183
*/
184
- public function getDataPriceType ()
184
+ public function getDataPriceType (): string
185
185
{
186
- if ($ this ->getData ('price_type ' ) && $ this ->getData ('price_type ' ) !== 'finalPrice ' ) {
187
- return 'base ' . ucfirst ($ this ->getData ('price_type ' ));
188
- }
189
- return 'basePrice ' ;
186
+ return $ this ->amountRender ->getPriceType () === 'finalPrice '
187
+ ? 'basePrice '
188
+ : 'base ' . ucfirst ($ this ->amountRender ->getPriceType ());
190
189
}
191
190
}
You can’t perform that action at this time.
0 commit comments