diff --git a/app/code/Magento/Catalog/Block/Category/Plugin/PriceBoxTags.php b/app/code/Magento/Catalog/Block/Category/Plugin/PriceBoxTags.php index 37d087049e4aa..03932151358ab 100644 --- a/app/code/Magento/Catalog/Block/Category/Plugin/PriceBoxTags.php +++ b/app/code/Magento/Catalog/Block/Category/Plugin/PriceBoxTags.php @@ -102,8 +102,8 @@ private function getTaxRateIds(PriceBox $subject) if (!empty($billingAddress) || !empty($shippingAddress)) { $rateRequest = $this->getTaxCalculation()->getRateRequest( - $billingAddress, $shippingAddress, + $billingAddress, $customerTaxClassId, $this->scopeResolver->getScope()->getId(), $this->customerSession->getCustomerId() diff --git a/app/code/Magento/Catalog/Test/Unit/Block/Category/Plugin/PriceBoxTagsTest.php b/app/code/Magento/Catalog/Test/Unit/Block/Category/Plugin/PriceBoxTagsTest.php index 57e94b59b330f..55402eb1f6fd2 100644 --- a/app/code/Magento/Catalog/Test/Unit/Block/Category/Plugin/PriceBoxTagsTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Block/Category/Plugin/PriceBoxTagsTest.php @@ -119,8 +119,8 @@ public function testAfterGetCacheKey() $this->session->expects($this->once())->method('getCustomerId')->willReturn($customerId); $rateRequest = $this->getMockBuilder(\Magento\Framework\DataObject::class)->getMock(); $this->taxCalculation->expects($this->once())->method('getRateRequest')->with( - new \Magento\Framework\DataObject($billingAddress), new \Magento\Framework\DataObject($shippingAddress), + new \Magento\Framework\DataObject($billingAddress), $customerTaxClassId, $scopeId, $customerId