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()
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
Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments