File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ public function getIdentities()
355
355
}
356
356
357
357
foreach ($ this ->_getProductCollection () as $ item ) {
358
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
358
359
$ identities = array_merge ($ identities , $ item ->getIdentities ());
359
360
}
360
361
@@ -475,8 +476,6 @@ private function initializeProductCollection()
475
476
$ layer ->setCurrentCategory ($ origCategory );
476
477
}
477
478
478
- $ this ->addToolbarBlock ($ collection );
479
-
480
479
$ this ->_eventManager ->dispatch (
481
480
'catalog_block_product_list_collection ' ,
482
481
['collection ' => $ collection ]
Original file line number Diff line number Diff line change @@ -187,10 +187,6 @@ public function testGetIdentities()
187
187
->method ('getProductCollection ' )
188
188
->will ($ this ->returnValue ($ this ->prodCollectionMock ));
189
189
190
- $ this ->layoutMock ->expects ($ this ->once ())
191
- ->method ('getBlock ' )
192
- ->will ($ this ->returnValue ($ this ->toolbarMock ));
193
-
194
190
$ this ->assertEquals (
195
191
[$ categoryTag , $ productTag ],
196
192
$ this ->block ->getIdentities ()
You can’t perform that action at this time.
0 commit comments