File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
dev/tests/integration/testsuite/Magento
Block/Dashboard/Tab/Products
Controller/Adminhtml/Dashboard
Reports/Model/ResourceModel/Report/Product/Viewed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ protected function setUp()
49
49
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
50
50
* @magentoDbIsolation enabled
51
51
* @magentoAppIsolation enabled
52
+ * @magentoConfigFixture default/reports/options/enabled 1
52
53
*/
53
54
public function testGetPreparedCollectionProductPrice ()
54
55
{
@@ -57,9 +58,11 @@ public function testGetPreparedCollectionProductPrice()
57
58
$ product = $ this ->productRepository ->getById (1 );
58
59
$ this ->eventManager ->dispatch ('catalog_controller_product_view ' , ['product ' => $ product ]);
59
60
61
+ $ collection = $ viewedProductsTabBlock ->getPreparedCollection ();
62
+
60
63
$ this ->assertEquals (
61
64
10 ,
62
- $ viewedProductsTabBlock -> getPreparedCollection () ->getFirstItem ()->getDataByKey ('price ' )
65
+ $ collection ->getFirstItem ()->getDataByKey ('price ' )
63
66
);
64
67
}
65
68
}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class ProductsViewedTest extends \Magento\TestFramework\TestCase\AbstractBackend
15
15
/**
16
16
* @magentoAppArea adminhtml
17
17
* @magentoDataFixture Magento/Reports/_files/viewed_products.php
18
+ * @magentoConfigFixture default/reports/options/enabled 1
18
19
*/
19
20
public function testExecute ()
20
21
{
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ protected function setUp()
27
27
28
28
/**
29
29
* @magentoDataFixture Magento/Reports/_files/viewed_products.php
30
+ * @magentoConfigFixture default/reports/options/enabled 1
30
31
*/
31
32
public function testGetItems ()
32
33
{
You can’t perform that action at this time.
0 commit comments