File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,12 @@ public function testLoadGallery()
317
317
$ attributeId = 6 ;
318
318
$ getTableReturnValue = 'table ' ;
319
319
$ quoteInfoReturnValue =
320
- 'main.value_id = value.value_id AND value.store_id = ' . $ storeId ;
320
+ 'main.value_id = value.value_id AND value.store_id = ' . $ storeId
321
+ . ' AND value.entity_id = entity.entity_id ' ;
322
+ $ quoteDefaultInfoReturnValue =
323
+ 'main.value_id = default_value.value_id AND default_value.store_id = 0 '
324
+ . ' AND default_value.entity_id = entity.entity_id ' ;
325
+
321
326
$ positionCheckSql = 'testchecksql ' ;
322
327
$ resultRow = [
323
328
[
@@ -373,7 +378,7 @@ public function testLoadGallery()
373
378
)->willReturnSelf ();
374
379
$ this ->select ->expects ($ this ->at (3 ))->method ('joinLeft ' )->with (
375
380
['default_value ' => $ getTableReturnValue ],
376
- ' main.value_id = default_value.value_id AND default_value.store_id = 0 ' ,
381
+ $ quoteDefaultInfoReturnValue ,
377
382
['label_default ' => 'label ' , 'position_default ' => 'position ' , 'disabled_default ' => 'disabled ' ]
378
383
)->willReturnSelf ();
379
384
$ this ->select ->expects ($ this ->at (4 ))->method ('where ' )->with (
You can’t perform that action at this time.
0 commit comments