Skip to content

Commit d18adc4

Browse files
committed
MC-33086: [Improvement] Apply Event To Category observer
- fix tests
1 parent baebe46 commit d18adc4

File tree

1 file changed

+4
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Block/Product

1 file changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ public function testGetAdditionalHtml()
9292

9393
public function testSetCollection()
9494
{
95-
$this->_block->setCollection('test');
96-
$this->assertEquals('test', $this->_block->getLoadedProductCollection());
95+
$collection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
96+
->create(\Magento\Framework\Data\Collection::class);
97+
$this->_block->setCollection($collection);
98+
$this->assertEquals($collection, $this->_block->getLoadedProductCollection());
9799
}
98100

99101
public function testGetPriceBlockTemplate()

0 commit comments

Comments
 (0)