|
1 | 1 | <?php |
2 | 2 | /** |
3 | | - * Copyright © Magento, Inc. All rights reserved. |
4 | | - * See COPYING.txt for license details. |
| 3 | + * Copyright 2023 Adobe |
| 4 | + * All Rights Reserved. |
5 | 5 | */ |
6 | 6 | declare(strict_types=1); |
7 | 7 |
|
@@ -110,21 +110,17 @@ public function testAfterCreateCollectionSuccess(): void |
110 | 110 | $select = $this->createMock(Select::class); |
111 | 111 | $select->expects($this->once()) |
112 | 112 | ->method('from') |
113 | | - ->with(['e' => 'catalog_product_entity'], ['link_table.parent_id']) |
| 113 | + ->with(['e' => 'catalog_product_entity'], ['entity_table.entity_id']) |
114 | 114 | ->willReturn($select); |
115 | | - $select->expects($this->once()) |
| 115 | + $select->expects($this->exactly(2)) |
116 | 116 | ->method('joinInner') |
117 | | - ->with( |
118 | | - ['link_table' => 'catalog_product_super_link'], |
119 | | - 'link_table.product_id = e.' . $linkField, |
120 | | - [] |
121 | | - )->willReturn($select); |
| 117 | + ->willReturn($select); |
122 | 118 | $select->expects($this->once())->method('where')->with('link_table.product_id IN (?)', [1, 2]); |
123 | 119 | $connection = $this->createMock(AdapterInterface::class); |
124 | 120 | $connection->expects($this->once())->method('select')->willReturn($select); |
125 | 121 | $connection->expects($this->once())->method('fetchCol')->willReturn([2]); |
126 | 122 | $this->resource->expects($this->once())->method('getConnection')->willReturn($connection); |
127 | | - $this->resource->expects($this->exactly(2)) |
| 123 | + $this->resource->expects($this->exactly(3)) |
128 | 124 | ->method('getTableName') |
129 | 125 | ->willReturnCallback(fn($param) => match ([$param]) { |
130 | 126 | ['catalog_product_entity'] => 'catalog_product_entity', |
|
0 commit comments