We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baebe46 commit d18adc4Copy full SHA for d18adc4
dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListTest.php
@@ -92,8 +92,10 @@ public function testGetAdditionalHtml()
92
93
public function testSetCollection()
94
{
95
- $this->_block->setCollection('test');
96
- $this->assertEquals('test', $this->_block->getLoadedProductCollection());
+ $collection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
+ ->create(\Magento\Framework\Data\Collection::class);
97
+ $this->_block->setCollection($collection);
98
+ $this->assertEquals($collection, $this->_block->getLoadedProductCollection());
99
}
100
101
public function testGetPriceBlockTemplate()
0 commit comments