Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 79f6a95

Browse files
committed
MAGETWO-71554: Category edit performance issue - for 2.2
1 parent 9b0a3c8 commit 79f6a95

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

app/code/Magento/CatalogRule/Model/Indexer/IndexBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class IndexBuilder
161161
* @param \Magento\Catalog\Model\ResourceModel\Indexer\ActiveTableSwitcher|null $activeTableSwitcher
162162
* @param ProductLoader|null $productLoader
163163
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
164+
* @SuppressWarnings(PHPMD.NPathComplexity)
164165
*/
165166
public function __construct(
166167
RuleCollectionFactory $ruleCollectionFactory,

app/code/Magento/CatalogUrlRewrite/Test/Unit/Observer/UrlRewriteHandlerTest.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ public function testGenerateProductUrlRewrites()
127127
{
128128
/* @var \Magento\Catalog\Model\Category|\PHPUnit_Framework_MockObject_MockObject $category */
129129
$category = $this->getMockBuilder(\Magento\Catalog\Model\Category::class)
130-
->setMethods([
131-
'getEntityId',
132-
'getStoreId',
133-
'getData',
134-
'getAffectedProductIds',
135-
'dataHasChangedFor',
136-
])
130+
->setMethods(['getEntityId', 'getStoreId', 'getData', 'getChangedProductIds'])
137131
->disableOriginalConstructor()
138132
->getMock();
139133
$category->expects($this->any())
@@ -142,9 +136,6 @@ public function testGenerateProductUrlRewrites()
142136
$category->expects($this->any())
143137
->method('getStoreId')
144138
->willReturn(1);
145-
$category->expects($this->atLeastOnce())
146-
->method('dataHasChangedFor')
147-
->willReturn('true');
148139
$category->expects($this->any())
149140
->method('getData')
150141
->with('save_rewrites_history')

0 commit comments

Comments
 (0)