@@ -87,8 +87,8 @@ protected function setUp()
87
87
{
88
88
$ this ->collectionFactory =
89
89
$ this ->getMockBuilder (\Magento \Catalog \Model \ResourceModel \Product \CollectionFactory::class)
90
- ->setMethods (['create ' ])
91
- ->disableOriginalConstructor ()->getMock ();
90
+ ->setMethods (['create ' ])
91
+ ->disableOriginalConstructor ()->getMock ();
92
92
$ this ->visibility = $ this ->getMockBuilder (\Magento \Catalog \Model \Product \Visibility::class)
93
93
->setMethods (['getVisibleInCatalogIds ' ])
94
94
->disableOriginalConstructor ()
@@ -144,6 +144,8 @@ public function testGetCacheKeyInfo()
144
144
$ this ->productsList ->setData ('conditions ' , 'some_serialized_conditions ' );
145
145
146
146
$ this ->productsList ->setData ('page_var_name ' , 'page_number ' );
147
+ $ this ->productsList ->setTemplate ('test_template ' );
148
+ $ this ->productsList ->setData ('title ' , 'test_title ' );
147
149
$ this ->request ->expects ($ this ->once ())->method ('getParam ' )->with ('page_number ' )->willReturn (1 );
148
150
149
151
$ this ->request ->expects ($ this ->once ())->method ('getParams ' )->willReturn ('request_params ' );
@@ -164,7 +166,9 @@ public function testGetCacheKeyInfo()
164
166
1 ,
165
167
5 ,
166
168
'some_serialized_conditions ' ,
167
- json_encode ('request_params ' )
169
+ json_encode ('request_params ' ),
170
+ 'test_template ' ,
171
+ 'test_title '
168
172
];
169
173
$ this ->assertEquals ($ cacheKey , $ this ->productsList ->getCacheKeyInfo ());
170
174
}
@@ -249,9 +253,10 @@ public function testGetPagerHtml()
249
253
* Test public `createCollection` method and protected `getPageSize` method via `createCollection`
250
254
*
251
255
* @param bool $pagerEnable
252
- * @param int $productsCount
253
- * @param int $productsPerPage
254
- * @param int $expectedPageSize
256
+ * @param int $productsCount
257
+ * @param int $productsPerPage
258
+ * @param int $expectedPageSize
259
+ *
255
260
* @dataProvider createCollectionDataProvider
256
261
*/
257
262
public function testCreateCollection ($ pagerEnable , $ productsCount , $ productsPerPage , $ expectedPageSize )
@@ -380,6 +385,7 @@ public function testGetIdentities()
380
385
381
386
/**
382
387
* @param $collection
388
+ *
383
389
* @return \PHPUnit_Framework_MockObject_MockObject
384
390
*/
385
391
private function getConditionsForCollection ($ collection )
0 commit comments