File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
app/code/Magento/GiftMessage Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,7 @@ public function getConfig()
119
119
$ configuration ['isCustomerLoggedIn ' ] = $ this ->isCustomerLoggedIn ();
120
120
$ configuration ['formKey ' ] = $ this ->formKey ->getFormKey ();
121
121
$ 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 );
125
123
return $ configuration ;
126
124
}
127
125
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function testGetConfig()
104
104
$ productMock = $ this ->createMock (\Magento \Catalog \Model \Product::class);
105
105
$ storeMock = $ this ->createPartialMock (
106
106
\Magento \Store \Model \Store::class,
107
- ['isFrontUrlSecure ' , ' getBaseUrl ' , 'getCode ' ]
107
+ ['getBaseUrl ' , 'getCode ' ]
108
108
);
109
109
$ quoteMock = $ this ->createPartialMock (
110
110
\Magento \Quote \Model \Quote::class,
@@ -142,8 +142,7 @@ public function testGetConfig()
142
142
->willReturn ($ isCustomerLoggedIn );
143
143
$ this ->formKeyMock ->expects ($ this ->once ())->method ('getFormKey ' )->willReturn ($ formKey );
144
144
$ 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 )
147
146
->willReturn ($ baseUrl );
148
147
149
148
$ expectedResult = [
You can’t perform that action at this time.
0 commit comments