Skip to content

Commit fe9e95d

Browse files
committed
Merge remote-tracking branch 'austin/MAGETWO-70603' into bugs
2 parents 07f9a10 + 6df5857 commit fe9e95d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

app/code/Magento/GiftMessage/Model/GiftMessageConfigProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ public function getConfig()
119119
$configuration['isCustomerLoggedIn'] = $this->isCustomerLoggedIn();
120120
$configuration['formKey'] = $this->formKey->getFormKey();
121121
$store = $this->storeManager->getStore();
122-
$configuration['baseUrl'] = $store->isFrontUrlSecure()
123-
? $store->getBaseUrl(UrlInterface::URL_TYPE_LINK, true)
124-
: $store->getBaseUrl(UrlInterface::URL_TYPE_LINK, false);
122+
$configuration['baseUrl'] = $store->getBaseUrl(UrlInterface::URL_TYPE_LINK);
125123
return $configuration;
126124
}
127125

app/code/Magento/GiftMessage/Test/Unit/Model/GiftMessageConfigProviderTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testGetConfig()
104104
$productMock = $this->createMock(\Magento\Catalog\Model\Product::class);
105105
$storeMock = $this->createPartialMock(
106106
\Magento\Store\Model\Store::class,
107-
['isFrontUrlSecure', 'getBaseUrl', 'getCode']
107+
['getBaseUrl', 'getCode']
108108
);
109109
$quoteMock = $this->createPartialMock(
110110
\Magento\Quote\Model\Quote::class,
@@ -142,8 +142,7 @@ public function testGetConfig()
142142
->willReturn($isCustomerLoggedIn);
143143
$this->formKeyMock->expects($this->once())->method('getFormKey')->willReturn($formKey);
144144
$this->storeManagerMock->expects($this->once())->method('getStore')->willReturn($storeMock);
145-
$storeMock->expects($this->once())->method('isFrontUrlSecure')->willReturn($isFrontUrlSecure);
146-
$storeMock->expects($this->once())->method('getBaseUrl')->with(UrlInterface::URL_TYPE_LINK, $isFrontUrlSecure)
145+
$storeMock->expects($this->once())->method('getBaseUrl')->with(UrlInterface::URL_TYPE_LINK)
147146
->willReturn($baseUrl);
148147

149148
$expectedResult = [

0 commit comments

Comments
 (0)