Skip to content

Commit be951d5

Browse files
committed
ACP2E-4159: Errors with duplicate entries (temp_category_descendants_%)
1 parent 30aebea commit be951d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Category/CollectionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ public function testLoadProductCountCallsBulkMethodForLargeCategoryCount()
255255
$this->connection->expects($this->once())->method('dropTemporaryTable')
256256
->with($this->stringContains('temp_category_descendants_'));
257257
$this->select->method('from')->willReturnSelf();
258-
$this->select->expects($this->once())
259-
->method('joinInner')
260-
->with( ['ce2' => null],
258+
$this->select->expects($this->once())->method('joinInner')
259+
->with(
260+
['ce2' => null],
261261
'ce2.path LIKE CONCAT(ce.path, \'/%\')',
262-
[])
263-
->willReturnSelf();
262+
[]
263+
)->willReturnSelf();
264264
$this->select->method('where')->willReturnSelf();
265265
$this->connection->method('select')->willReturn($this->select);
266266
$this->connection->method('insertFromSelect')->willReturn('INSERT QUERY');

0 commit comments

Comments
 (0)