Skip to content

Commit ba191f2

Browse files
committed
ACP2E-1992: Configurable on sale products not visible in products carousel
- adjusted unit
1 parent b3811b0 commit ba191f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/CatalogWidget/Block/Product/ProductListPluginTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,14 @@ public function testAfterCreateCollectionNoCount(): void
8787
*/
8888
public function testAfterCreateCollectionSuccess(): void
8989
{
90+
$linkField = 'entity_id';
9091
$subject = $this->createMock(ProductsList::class);
9192
$result = $this->createMock(Collection::class);
9293
$result->expects($this->once())->method('count')->willReturn(1);
9394
$result->expects($this->once())->method('getAllIds')->willReturn([1]);
9495
$result->expects($this->once())->method('addItem');
9596
$entity = $this->createMock(EntityMetadataInterface::class);
96-
$entity->expects($this->once())->method('getLinkField')->willReturn('row_id');
97+
$entity->expects($this->once())->method('getLinkField')->willReturn($linkField);
9798
$this->metadataPool->expects($this->once())
9899
->method('getMetadata')
99100
->with(\Magento\Catalog\Api\Data\ProductInterface::class)
@@ -108,7 +109,7 @@ public function testAfterCreateCollectionSuccess(): void
108109
->method('joinInner')
109110
->with(
110111
['link_table' => 'catalog_product_super_link'],
111-
'link_table.product_id = e.row_id',
112+
'link_table.product_id = e.' . $linkField,
112113
[]
113114
)->willReturn($select);
114115
$select->expects($this->once())->method('where')->with('link_table.product_id IN (?)', [1]);

0 commit comments

Comments
 (0)