File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/code/Magento/Wishlist/Model
dev/tests/integration/testsuite/Magento/Catalog/Block/Product Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Wishlist \Model ;
8
8
9
9
/**
10
- * Class LocaleQuantityProcessor
10
+ * Class LocaleQuantityProcessor for localized quantity to internal format
11
11
*
12
12
* @api
13
13
* @since 100.0.2
Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ public function testGetAdditionalHtml()
92
92
93
93
public function testSetCollection ()
94
94
{
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 ());
97
99
}
98
100
99
101
public function testGetPriceBlockTemplate ()
You can’t perform that action at this time.
0 commit comments