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()
223223 $ this ->_storeManager ->getStore ()->getId (),
224224 $ this ->_design ->getDesignTheme ()->getId (),
225225 $ this ->httpContext ->getValue (\Magento \Customer \Model \Context::CONTEXT_GROUP ),
226+ $ this ->json ->serialize ($ this ->httpContext ->getValue ('tax_rates ' )),
226227 (int )$ this ->getRequest ()->getParam ($ this ->getData ('page_var_name ' ), 1 ),
227228 $ this ->getProductsPerPage (),
228229 $ this ->getProductsCount (),
Original file line number Diff line number Diff line change @@ -163,7 +163,14 @@ public function testGetCacheKeyInfo()
163163 $ theme ->expects ($ this ->once ())->method ('getId ' )->willReturn ('blank ' );
164164 $ this ->design ->expects ($ this ->once ())->method ('getDesignTheme ' )->willReturn ($ theme );
165165
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+
167174 $ this ->productsList ->setData ('conditions ' , 'some_serialized_conditions ' );
168175
169176 $ this ->productsList ->setData ('page_var_name ' , 'page_number ' );
@@ -188,6 +195,7 @@ public function testGetCacheKeyInfo()
188195 1 ,
189196 'blank ' ,
190197 'context_group ' ,
198+ '[10] ' ,
191199 1 ,
192200 5 ,
193201 10 ,
You can’t perform that action at this time.
0 commit comments