Skip to content

Commit 09ea4da

Browse files
committed
Merge remote-tracking branch 'magento-tango/MC-18038' into PR-20190718
2 parents 80d2e85 + 8b1ef77 commit 09ea4da

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/code/Magento/CatalogRule/Pricing/Price/CatalogRulePrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getValue()
9393
} else {
9494
$this->value = $this->getRuleResource()
9595
->getRulePrice(
96-
$this->dateTime->scopeDate($this->storeManager->getStore()->getId()),
96+
$this->dateTime->date(null, null, false),
9797
$this->storeManager->getStore()->getWebsiteId(),
9898
$this->customerSession->getCustomerGroupId(),
9999
$this->product->getId()

app/code/Magento/CatalogRule/Test/Unit/Pricing/Price/CatalogRulePriceTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ protected function setUp()
155155
*/
156156
public function testGetValue()
157157
{
158-
$coreStoreId = 1;
159158
$coreWebsiteId = 1;
160159
$productId = 1;
161160
$customerGroupId = 1;
@@ -164,15 +163,12 @@ public function testGetValue()
164163
$catalogRulePrice = 55.12;
165164
$convertedPrice = 45.34;
166165

167-
$this->coreStoreMock->expects($this->once())
168-
->method('getId')
169-
->will($this->returnValue($coreStoreId));
170166
$this->coreStoreMock->expects($this->once())
171167
->method('getWebsiteId')
172168
->will($this->returnValue($coreWebsiteId));
173169
$this->dataTimeMock->expects($this->once())
174-
->method('scopeDate')
175-
->with($this->equalTo($coreStoreId))
170+
->method('date')
171+
->with(null, null, false)
176172
->will($this->returnValue($dateTime));
177173
$this->customerSessionMock->expects($this->once())
178174
->method('getCustomerGroupId')

0 commit comments

Comments
 (0)