Skip to content

Commit b98ba3d

Browse files
committed
MAGETWO-98801: Catalog cache gets flushed after Import
1 parent 0685376 commit b98ba3d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

app/code/Magento/Catalog/Block/Product/View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ public function getAddToCartUrl($product, $additional = [])
169169
}
170170

171171
/**
172-
* Get JSON encoded configuration array which can be used for JS dynamic
173-
* price calculation depending on product options
172+
* Get JSON encoded configuration which can be used for JS dynamic price calculation depending on product options
174173
*
175174
* @return string
176175
*/
@@ -262,6 +261,7 @@ public function isStartCustomization()
262261

263262
/**
264263
* Get default qty - either as preconfigured, or as 1.
264+
*
265265
* Also restricts it by minimal qty.
266266
*
267267
* @param null|\Magento\Catalog\Model\Product $product

app/code/Magento/Catalog/Test/Unit/Block/Product/ViewTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,19 @@ public function testGetIdentities()
6565
{
6666
$productTags = ['cat_p_1'];
6767
$product = $this->createMock(\Magento\Catalog\Model\Product::class);
68-
$category = $this->createMock(\Magento\Catalog\Model\Category::class);
6968

7069
$product->expects($this->once())
7170
->method('getIdentities')
7271
->will($this->returnValue($productTags));
73-
$category->expects($this->once())
74-
->method('getId')
75-
->will($this->returnValue(1));
7672
$this->registryMock->expects($this->any())
7773
->method('registry')
7874
->will(
7975
$this->returnValueMap(
8076
[
8177
['product', $product],
82-
['current_category', $category],
8378
]
8479
)
8580
);
86-
$this->assertEquals(['cat_p_1', 'cat_c_1'], $this->view->getIdentities());
81+
$this->assertEquals($productTags, $this->view->getIdentities());
8782
}
8883
}

0 commit comments

Comments
 (0)