File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
app/code/Magento/CatalogWidget Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ public function getCacheKeyInfo()
223
223
$ this ->_storeManager ->getStore ()->getId (),
224
224
$ this ->_design ->getDesignTheme ()->getId (),
225
225
$ this ->httpContext ->getValue (\Magento \Customer \Model \Context::CONTEXT_GROUP ),
226
+ $ this ->json ->serialize ($ this ->httpContext ->getValue ('tax_rates ' )),
226
227
(int )$ this ->getRequest ()->getParam ($ this ->getData ('page_var_name ' ), 1 ),
227
228
$ this ->getProductsPerPage (),
228
229
$ this ->getProductsCount (),
Original file line number Diff line number Diff line change @@ -163,7 +163,14 @@ public function testGetCacheKeyInfo()
163
163
$ theme ->expects ($ this ->once ())->method ('getId ' )->willReturn ('blank ' );
164
164
$ this ->design ->expects ($ this ->once ())->method ('getDesignTheme ' )->willReturn ($ theme );
165
165
166
- $ this ->httpContext ->expects ($ this ->once ())->method ('getValue ' )->willReturn ('context_group ' );
166
+ $ this ->httpContext ->expects ($ this ->exactly (2 ))
167
+ ->method ('getValue ' )
168
+ ->withConsecutive (
169
+ [$ this ->equalTo (\Magento \Customer \Model \Context::CONTEXT_GROUP )],
170
+ [$ this ->equalTo ('tax_rates ' )]
171
+ )
172
+ ->willReturnOnConsecutiveCalls ('context_group ' , [10 ]);
173
+
167
174
$ this ->productsList ->setData ('conditions ' , 'some_serialized_conditions ' );
168
175
169
176
$ this ->productsList ->setData ('page_var_name ' , 'page_number ' );
@@ -188,6 +195,7 @@ public function testGetCacheKeyInfo()
188
195
1 ,
189
196
'blank ' ,
190
197
'context_group ' ,
198
+ '[10] ' ,
191
199
1 ,
192
200
5 ,
193
201
10 ,
You can’t perform that action at this time.
0 commit comments