@@ -87,8 +87,8 @@ protected function setUp()
8787 {
8888 $ this ->collectionFactory =
8989 $ this ->getMockBuilder (\Magento \Catalog \Model \ResourceModel \Product \CollectionFactory::class)
90- ->setMethods (['create ' ])
91- ->disableOriginalConstructor ()->getMock ();
90+ ->setMethods (['create ' ])
91+ ->disableOriginalConstructor ()->getMock ();
9292 $ this ->visibility = $ this ->getMockBuilder (\Magento \Catalog \Model \Product \Visibility::class)
9393 ->setMethods (['getVisibleInCatalogIds ' ])
9494 ->disableOriginalConstructor ()
@@ -144,6 +144,8 @@ public function testGetCacheKeyInfo()
144144 $ this ->productsList ->setData ('conditions ' , 'some_serialized_conditions ' );
145145
146146 $ this ->productsList ->setData ('page_var_name ' , 'page_number ' );
147+ $ this ->productsList ->setTemplate ('test_template ' );
148+ $ this ->productsList ->setData ('title ' , 'test_title ' );
147149 $ this ->request ->expects ($ this ->once ())->method ('getParam ' )->with ('page_number ' )->willReturn (1 );
148150
149151 $ this ->request ->expects ($ this ->once ())->method ('getParams ' )->willReturn ('request_params ' );
@@ -166,7 +168,9 @@ public function testGetCacheKeyInfo()
166168 1 ,
167169 5 ,
168170 'some_serialized_conditions ' ,
169- json_encode ('request_params ' )
171+ json_encode ('request_params ' ),
172+ 'test_template ' ,
173+ 'test_title '
170174 ];
171175 $ this ->assertEquals ($ cacheKey , $ this ->productsList ->getCacheKeyInfo ());
172176 }
@@ -251,9 +255,10 @@ public function testGetPagerHtml()
251255 * Test public `createCollection` method and protected `getPageSize` method via `createCollection`
252256 *
253257 * @param bool $pagerEnable
254- * @param int $productsCount
255- * @param int $productsPerPage
256- * @param int $expectedPageSize
258+ * @param int $productsCount
259+ * @param int $productsPerPage
260+ * @param int $expectedPageSize
261+ *
257262 * @dataProvider createCollectionDataProvider
258263 */
259264 public function testCreateCollection ($ pagerEnable , $ productsCount , $ productsPerPage , $ expectedPageSize )
@@ -382,6 +387,7 @@ public function testGetIdentities()
382387
383388 /**
384389 * @param $collection
390+ *
385391 * @return \PHPUnit_Framework_MockObject_MockObject
386392 */
387393 private function getConditionsForCollection ($ collection )
0 commit comments