File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/code/Magento/Wishlist/Model/ResourceModel/Item
dev/tests/integration/testsuite/Magento/Wishlist/Model/ResourceModel/Item Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ protected function _renderFiltersBefore()
400
400
['cat_prod ' => $ this ->getTable ('catalog_product_entity ' )],
401
401
$ this ->getConnection ()
402
402
->quoteInto (
403
- ' cat_prod.type_id IN (?) AND main_table .product_id = cat_prod.entity_id ' ,
403
+ " cat_prod.type_id IN (?) AND { $ mainTableName } .product_id = cat_prod.entity_id " ,
404
404
$ availableProductTypes
405
405
),
406
406
[]
Original file line number Diff line number Diff line change @@ -69,11 +69,14 @@ public function testLoadedProductAttributes()
69
69
*
70
70
* @magentoDataFixture Magento/Catalog/_files/second_product_simple.php
71
71
* @magentoDataFixture Magento/Wishlist/_files/wishlist.php
72
+ * @magentoDbIsolation disabled
72
73
*/
73
- public function testGonnaCutYouDown ()
74
+ public function testLoadWhenFewProductsPresent ()
74
75
{
75
76
$ this ->itemCollection ->setSalableFilter (true );
77
+ $ this ->itemCollection ->addCustomerIdFilter (1 );
76
78
$ this ->itemCollection ->load ();
79
+ $ this ->assertCount (1 , $ this ->itemCollection ->getItems ());
77
80
}
78
81
79
82
/**
You can’t perform that action at this time.
0 commit comments