File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/code/Magento/CatalogWidget Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function getCacheKeyInfo()
160
160
161
161
return [
162
162
'CATALOG_PRODUCTS_LIST_WIDGET ' ,
163
- $ this ->getPriceCurrency ()->getCurrencySymbol (),
163
+ $ this ->getPriceCurrency ()->getCurrency ()-> getCode (),
164
164
$ this ->_storeManager ->getStore ()->getId (),
165
165
$ this ->_design ->getDesignTheme ()->getId (),
166
166
$ this ->httpContext ->getValue (\Magento \Customer \Model \Context::CONTEXT_GROUP ),
Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ public function testGetCacheKeyInfo()
147
147
$ this ->request ->expects ($ this ->once ())->method ('getParam ' )->with ('page_number ' )->willReturn (1 );
148
148
149
149
$ this ->request ->expects ($ this ->once ())->method ('getParams ' )->willReturn ('request_params ' );
150
- $ this ->priceCurrency ->expects ($ this ->once ())->method ('getCurrencySymbol ' )->willReturn ('$ ' );
150
+ $ currency = $ this ->createMock (\Magento \Directory \Model \Currency::class);
151
+ $ currency ->expects ($ this ->once ())->method ('getCode ' )->willReturn ('USD ' );
152
+ $ this ->priceCurrency ->expects ($ this ->once ())->method ('getCurrency ' )->willReturn ($ currency );
151
153
152
154
$ this ->serializer ->expects ($ this ->any ())
153
155
->method ('serialize ' )
@@ -157,7 +159,7 @@ public function testGetCacheKeyInfo()
157
159
158
160
$ cacheKey = [
159
161
'CATALOG_PRODUCTS_LIST_WIDGET ' ,
160
- '$ ' ,
162
+ 'USD ' ,
161
163
1 ,
162
164
'blank ' ,
163
165
'context_group ' ,
You can’t perform that action at this time.
0 commit comments