Skip to content

Commit df1de95

Browse files
committed
MC-40559 : Stabilize Integration Tests
- Fix Static tests
1 parent 2297878 commit df1de95

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Wishlist/Model/LocaleQuantityProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\Wishlist\Model;
88

99
/**
10-
* Class LocaleQuantityProcessor
10+
* Class LocaleQuantityProcessor for localized quantity to internal format
1111
*
1212
* @api
1313
* @since 100.0.2

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)