File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
app/code/Magento/Tax/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -392,9 +392,39 @@ public function testNeedPriceConversion(): void
392
392
$ scopeConfigMock = $ this ->getMockForAbstractClass (ScopeConfigInterface::class);
393
393
$ scopeConfigMock
394
394
->method ('getValue ' )
395
- ->willReturn (true );
395
+ ->willReturnMap (
396
+ [
397
+ [
398
+ Config::XML_PATH_DISPLAY_CART_SHIPPING ,
399
+ ScopeInterface::SCOPE_STORE ,
400
+ null ,
401
+ true
402
+ ],
403
+ [
404
+ Config::XML_PATH_DISPLAY_CART_SHIPPING ,
405
+ ScopeInterface::SCOPE_STORE ,
406
+ null ,
407
+ false
408
+ ],
409
+ [
410
+ Config::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE ,
411
+ ScopeInterface::SCOPE_STORE ,
412
+ null ,
413
+ true
414
+ ],
415
+ [
416
+ Config::XML_PATH_DISPLAY_CART_PRICE ,
417
+ ScopeInterface::SCOPE_STORE ,
418
+ null ,
419
+ false
420
+ ]
421
+ ]
422
+ );
396
423
/** @var Config */
397
424
$ model = new Config ($ scopeConfigMock );
425
+ $ model ->setPriceIncludesTax (false );
426
+ $ model ->setNeedUseShippingExcludeTax (false );
427
+ $ model ->setShippingPriceIncludeTax (false );
398
428
$ this ->assertEquals (true , $ model ->needPriceConversion ());
399
429
}
400
430
}
You can’t perform that action at this time.
0 commit comments