Skip to content

Commit 1d282e8

Browse files
committed
MC-20322: [Forwardport] Disable statistic collecting for Reports module
1 parent 5396fd4 commit 1d282e8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

dev/tests/integration/testsuite/Magento/Backend/Block/Dashboard/Tab/Products/ViewedTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ protected function setUp()
4949
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
5050
* @magentoDbIsolation enabled
5151
* @magentoAppIsolation enabled
52+
* @magentoConfigFixture default/reports/options/enabled 1
5253
*/
5354
public function testGetPreparedCollectionProductPrice()
5455
{
@@ -57,9 +58,11 @@ public function testGetPreparedCollectionProductPrice()
5758
$product = $this->productRepository->getById(1);
5859
$this->eventManager->dispatch('catalog_controller_product_view', ['product' => $product]);
5960

61+
$collection = $viewedProductsTabBlock->getPreparedCollection();
62+
6063
$this->assertEquals(
6164
10,
62-
$viewedProductsTabBlock->getPreparedCollection()->getFirstItem()->getDataByKey('price')
65+
$collection->getFirstItem()->getDataByKey('price')
6366
);
6467
}
6568
}

dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Dashboard/ProductsViewedTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ProductsViewedTest extends \Magento\TestFramework\TestCase\AbstractBackend
1515
/**
1616
* @magentoAppArea adminhtml
1717
* @magentoDataFixture Magento/Reports/_files/viewed_products.php
18+
* @magentoConfigFixture default/reports/options/enabled 1
1819
*/
1920
public function testExecute()
2021
{

dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Report/Product/Viewed/CollectionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ protected function setUp()
2727

2828
/**
2929
* @magentoDataFixture Magento/Reports/_files/viewed_products.php
30+
* @magentoConfigFixture default/reports/options/enabled 1
3031
*/
3132
public function testGetItems()
3233
{

0 commit comments

Comments
 (0)