Skip to content

Commit 5ce8c6f

Browse files
committed
MAGETWO-72861: Category edit performance issue - for 2.3
- Update unit tests;
1 parent 21a4b56 commit 5ce8c6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogRule/Test/Unit/Model/Indexer/IndexBuilder/ProductLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testGetProducts()
8787
->method('getList')
8888
->with($this->searchCriteria)
8989
->willReturn($this->productSearchResultsInterface);
90-
$iterator = new \ArrayIterator([$this->product]);
90+
$iterator = [$this->product];
9191
$this->productSearchResultsInterface->expects($this->once())
9292
->method('getItems')
9393
->willReturn($iterator);

app/code/Magento/CatalogRule/Test/Unit/Model/Indexer/IndexBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function testUpdateCatalogRuleGroupWebsiteData()
255255
->method('getBackend')
256256
->will($this->returnValue($backendModelMock));
257257

258-
$iterator = new \ArrayIterator([$this->product]);
258+
$iterator = [$this->product];
259259
$this->productLoader->expects($this->once())
260260
->method('getProducts')
261261
->willReturn($iterator);

0 commit comments

Comments
 (0)