We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf26f7f commit 73f76afCopy full SHA for 73f76af
dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Dashboard/ProductsViewedTest.php
@@ -6,14 +6,19 @@
6
*/
7
namespace Magento\Backend\Controller\Adminhtml\Dashboard;
8
9
+
10
class ProductsViewedTest extends \Magento\Backend\Utility\Controller
11
{
12
+ /**
13
+ * @magentoDataFixture Magento/Reports/_files/viewed_products.php
14
+ */
15
public function testExecute()
16
17
$this->dispatch('backend/admin/dashboard/productsViewed/');
18
19
$this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
20
21
$actual = $this->getResponse()->getBody();
- $this->assertContains('dashboard-item-content', $actual);
22
+ $this->assertContains('Simple Product', $actual);
23
}
24
0 commit comments