-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACP2E-3431: Products Ordered report is not exporting. 404 error instead.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...agento/Reports/Test/Integration/Controller/Adminhtml/Report/Product/ExportSoldCsvTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product; | ||
|
||
use Magento\TestFramework\TestCase\AbstractBackendController; | ||
|
||
/** | ||
* @magentoAppArea adminhtml | ||
*/ | ||
class ExportSoldCsvTest extends AbstractBackendController | ||
{ | ||
public function testExecute() | ||
{ | ||
$this->dispatch('backend/reports/report_product/exportSoldCsv'); | ||
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode()); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ento/Reports/Test/Integration/Controller/Adminhtml/Report/Product/ExportSoldExcelTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Reports\Test\Integration\Controller\Adminhtml\Report\Product; | ||
|
||
use Magento\TestFramework\TestCase\AbstractBackendController; | ||
|
||
/** | ||
* @magentoAppArea adminhtml | ||
*/ | ||
class ExportSoldExcelTest extends AbstractBackendController | ||
{ | ||
public function testExecute() | ||
{ | ||
$this->dispatch('backend/reports/report_product/exportSoldExcel'); | ||
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode()); | ||
} | ||
} |