Skip to content

Commit 13b80b3

Browse files
committed
ACP2E-3641: Performance optimization
1 parent 639edf4 commit 13b80b3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2024 Adobe
3+
* Copyright 2025 Adobe
44
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
@@ -203,16 +203,13 @@ public function setUp(): void
203203

204204
public function testLoadProductCount() : void
205205
{
206-
$this->select->expects($this->exactly(3))
206+
$this->select->expects($this->exactly(1))
207207
->method('from')
208208
->willReturnSelf();
209-
$this->select->expects($this->exactly(3))
210-
->method('where')
211-
->willReturnSelf();
212209
$this->select->expects($this->exactly(1))
213-
->method('group')
210+
->method('where')
214211
->willReturnSelf();
215-
$this->connection->expects($this->exactly(2))
212+
$this->connection->expects($this->exactly(1))
216213
->method('fetchPairs')
217214
->with($this->select)
218215
->willReturn([]);

0 commit comments

Comments
 (0)