Skip to content

Commit c9e467b

Browse files
committed
ACP2E-3431: Products Ordered report is not exporting. 404 error instead.
1 parent 42f713f commit c9e467b

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product;
9+
10+
use Magento\TestFramework\TestCase\AbstractBackendController;
11+
12+
/**
13+
* @magentoAppArea adminhtml
14+
*/
15+
class ExportSoldCsvTest extends AbstractBackendController
16+
{
17+
public function testExecute()
18+
{
19+
$this->dispatch('backend/reports/report_product/exportSoldCsv');
20+
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product;
9+
10+
use Magento\TestFramework\TestCase\AbstractBackendController;
11+
12+
/**
13+
* @magentoAppArea adminhtml
14+
*/
15+
class ExportSoldExcelTest extends AbstractBackendController
16+
{
17+
public function testExecute()
18+
{
19+
$this->dispatch('backend/reports/report_product/exportSoldExcel');
20+
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
21+
}
22+
}

0 commit comments

Comments
 (0)